Represents a set of used for localization.
Public Member Functions | |
VariableSet () | |
Creates a new empty variable set. More... | |
void | Clear () |
Empties this variable set. More... | |
void | Add (string code, string value) |
Adds a variable to this set. More... | |
void | Remove (string code) |
Removes a variable by name. More... | |
bool | Contains (string code) |
Checks if this variable set contains the named variable. More... | |
virtual string | GetValue (string code) |
Gets the value of the named variable from this set. More... | |
virtual void | SetValue (string code, string value) |
Sets a value of the named variable into this set. Creates it if it doesn't exist. More... | |
Public Attributes | |
Dictionary< string, string > | Map |
The lookup of variable name to its content. More... | |
Properties | |
string | this[string code] [get, set] |
Gets or sets (or creates if not found) the value of a named variable in this set. More... | |
|
inline |
Creates a new empty variable set.
|
inline |
Adds a variable to this set.
code | The name of the variable. |
value | The value of this variable. |
|
inline |
Empties this variable set.
|
inline |
Checks if this variable set contains the named variable.
code | The name of the variable to look for. |
|
inlinevirtual |
Gets the value of the named variable from this set.
code | The name of the variable to get the value of. |
Reimplemented in Wrench.LanguageSet.
|
inline |
Removes a variable by name.
code | The name of the variable to remove. |
|
inlinevirtual |
Sets a value of the named variable into this set. Creates it if it doesn't exist.
code | The name of the variable to set or create. |
value | The value of the variable to set. |
Dictionary<string,string> Wrench.VariableSet.Map |
The lookup of variable name to its content.
|
getset |
Gets or sets (or creates if not found) the value of a named variable in this set.
code | The name of the variable to get/set/create. |