#include <rs_variabledict.h>
Public Member Functions | |
| RS_VariableDict () | |
| Constructor. | |
| void | clear () |
| Removes all variables in the blocklist. | |
| int | count () |
| void | add (const RS_String &key, const RS_Vector &value, int code) |
| Adds a variable to the variable dictionary. | |
| void | add (const RS_String &key, const RS_String &value, int code) |
| Adds a variable to the variable dictionary. | |
| void | add (const RS_String &key, int value, int code) |
| Adds a variable to the variable dictionary. | |
| void | add (const RS_String &key, double value, int code) |
| Adds a variable to the variable dictionary. | |
| RS_Vector | getVector (const RS_String &key, const RS_Vector &def) |
| Gets the value for the given variable. | |
| RS_String | getString (const RS_String &key, const RS_String &def) |
| Gets the value for the given variable. | |
| int | getInt (const RS_String &key, int def) |
| Gets the value as int for the given variable. | |
| double | getDouble (const RS_String &key, double def) |
| Gets the value as double for the given variable. | |
| virtual void | remove (const RS_String &key) |
| Removes a variable from the list. | |
| RS_Hash< RS_String, RS_Variable > & | getVariableDict () |
The variables are stored as key / value pairs (string / string).
|
||||||||||||||||
|
Adds a variable to the variable dictionary. If a variable with the same name already exists, is will be overwritten. |
|
||||||||||||||||
|
Adds a variable to the variable dictionary. If a variable with the same name already exists, is will be overwritten. |
|
||||||||||||||||
|
Adds a variable to the variable dictionary. If a variable with the same name already exists, is will be overwritten. |
|
||||||||||||||||
|
Adds a variable to the variable dictionary. If a variable with the same name already exists, is will be overwritten. |
|
|
|
|
||||||||||||
|
Gets the value as double for the given variable.
|
|
||||||||||||
|
Gets the value as int for the given variable.
|
|
||||||||||||
|
Gets the value for the given variable.
|
|
||||||||||||
|
Gets the value for the given variable.
|
1.4.4