Holds internal variables to be used whereever needed.
More...
#include <gen.h>
List of all members.
Detailed Description
Holds internal variables to be used whereever needed.
The variables are stored as wxString keys plus a2dNamedProperty in a hash table.
Understand that a variable can hold any type of property and therefore any type of information can be stored. How that information is used in the commands within a2dCommandProcessor depends on the commands you implement. e.g. You can have C++ command functions which return a a2dObject* and this you can add a variable to the variable hash. Next that variable can be used to extract information using other commands again.
Definition at line 2614 of file gen.h.
Member Function Documentation
| bool a2dVariablesHash::SetVariable |
( |
const wxString & |
variableName, |
|
|
a2dNamedProperty * |
property | |
|
) |
| | |
set a new or replace an existing variable of arbitrary type
- Parameters:
-
| variableName | variable to add or replace |
| property | new property object for the variable ( id is usually wxPropertyIdXXX::GetDummy ) |
- Returns:
- true if variable already did exist.
Definition at line 2867 of file gen.cpp.
| bool a2dVariablesHash::SetVariableRefObject |
( |
const wxString & |
variableName, |
|
|
a2dObject * |
value | |
|
) |
| | |
set a new or replace an existing a2dObject variable
- Parameters:
-
| variableName | variable to add or replace |
| value | new value of the variable |
- Returns:
- true if variable already did exist.
Definition at line 2880 of file gen.cpp.
| bool a2dVariablesHash::SetVariableString |
( |
const wxString & |
variableName, |
|
|
const wxString & |
value | |
|
) |
| | |
set a new or replace an existing wxString variable
- Parameters:
-
| variableName | variable to add or replace |
| value | new value of the variable |
- Returns:
- true if variable already did exist.
Definition at line 2893 of file gen.cpp.
| bool a2dVariablesHash::SetVariableDouble |
( |
const wxString & |
variableName, |
|
|
double |
value | |
|
) |
| | |
set a new or replace an existing double variable
- Parameters:
-
| variableName | variable to add or replace |
| value | new value of the variable |
- Returns:
- true if variable already did exist.
Definition at line 2906 of file gen.cpp.
| bool a2dVariablesHash::SetVariableInt |
( |
const wxString & |
variableName, |
|
|
int |
value | |
|
) |
| | |
set a new or replace an existing int variable
- Parameters:
-
| variableName | variable to add or replace |
| value | new value of the variable |
- Returns:
- true if variable already did exist.
Definition at line 2919 of file gen.cpp.
| const a2dNamedProperty * a2dVariablesHash::GetVariable |
( |
const wxString & |
variableName |
) |
|
get an existing variable of unknown type (not cloned)
- Parameters:
-
| variableName | variable to search |
- Returns:
- NULL if variable does not exist, else the property found.
Definition at line 2932 of file gen.cpp.
| a2dNamedProperty * a2dVariablesHash::GetVariableClone |
( |
const wxString & |
variableName |
) |
|
get an existing variable of unknown type (cloned)
- Parameters:
-
| variableName | variable to search |
- Returns:
- NULL if variable does not exist, else the property found.
Definition at line 2941 of file gen.cpp.
| a2dObject * a2dVariablesHash::GetVariableRefObject |
( |
const wxString & |
variableName |
) |
|
get an existing a2dObject variable
- Parameters:
-
| variableName | variable to search |
- Returns:
- NULL if variable does not exist, else the property found.
Definition at line 2950 of file gen.cpp.
| wxString * a2dVariablesHash::GetVariableString |
( |
const wxString & |
variableName |
) |
|
get an existing wxString variable
- Parameters:
-
| variableName | variable to search |
- Returns:
- NULL if variable does not exist, else the property found.
Definition at line 2959 of file gen.cpp.
The documentation for this class was generated from the following files:
a2dVariablesHash Class Reference -- Tue Aug 31 18:36:10 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . --