#include <CVariableBinding.h>
Inheritance diagram for CVariableBinding< T >:
Public Member Functions | |
CVariableBinding (T &variable, const STD(string)&rName, T tInitialValue) | |
CVariableBinding (T &variable, const char *pName, T tInitialValue) | |
~CVariableBinding () | |
T | getVariable () const |
STD (string) getName() const | |
T | getInitValue () const |
int | getVarType () const |
void | setVariable (T value) |
void | setPointer (T *ptr) |
void | setName (const STD(string)&rName) |
void | setName (const char *pName) |
void | setInitialValue (T value) |
void | setVariableType (int type) |
virtual void | InitBindings (CTCLInterpreter &rInterp) |
virtual void | Commit (CTCLInterpreter &rInterp) |
virtual void | ShutdownBindings (CTCLInterpreter &rInterp) |
virtual void | Dump (int fd) |
Private Member Functions | |
STD (string) m_sName | |
Name of the variable (for Tcl binding). | |
CVariableBinding (const CVariableBinding &rBinding) | |
CVariableBinding & | operator= (const CVariableBinding &rBinding) |
int | operator== (const CVariableBinding &rBinding) |
Private Attributes | |
T * | m_pVariable |
Pointer to the config variable. | |
T | m_tInitialValue |
Initial value of the variable. | |
int | m_TCLVariableType |
Type of binding (for TCL). |
Definition at line 318 of file CVariableBinding.h.
|
|
|
Construct a variable binding from the variable reference asciz string pointer and initial value:
Definition at line 331 of file CVariableBinding.cpp. |
|
Definition at line 328 of file CVariableBinding.h. |
|
|
|
Commit - no commit operation is required. Since the variable was linked, it already has any changed value.
Implements CBinding< T >. Definition at line 363 of file CVariableBinding.cpp. |
|
This function is called to write the set of Tcl commands required to duplicate the current state. Note that this may not be identical to the set of commands which produced the configuration.
Implements CBinding< T >. Definition at line 392 of file CVariableBinding.cpp. References CVariableBinding< T >::m_pVariable. |
|
Definition at line 344 of file CVariableBinding.h. |
|
Definition at line 338 of file CVariableBinding.h. |
|
Definition at line 347 of file CVariableBinding.h. |
|
Initialize bindings prior to reading the configuration file. In this case, the TCL variable is bound to the thing referenced by the m_pVariable pointer.
Implements CBinding< T >. Definition at line 347 of file CVariableBinding.cpp. References CVariableBinding< T >::m_pVariable. |
|
|
|
|
|
Definition at line 364 of file CVariableBinding.h. References CVariableBinding< T >::m_tInitialValue. |
|
Definition at line 361 of file CVariableBinding.h. References CVariableBinding< T >::STD(). |
|
Definition at line 358 of file CVariableBinding.h. |
|
Definition at line 355 of file CVariableBinding.h. References CVariableBinding< T >::m_pVariable. |
|
Definition at line 352 of file CVariableBinding.h. References CVariableBinding< T >::m_pVariable. |
|
Definition at line 367 of file CVariableBinding.h. References CVariableBinding< T >::m_TCLVariableType. |
|
This function is called just prior to deleting the interpreter. Any cleanup actions required by the binding should be done at this point. For example, if Init mapped a C variable to a TCL variable, that mapping should be broken.
Implements CBinding< T >. Definition at line 372 of file CVariableBinding.cpp. |
|
Definition at line 341 of file CVariableBinding.h. |
|
Name of the variable (for Tcl binding).
Reimplemented from CBinding< T >. Referenced by CVariableBinding< T >::setName(). |
|
Pointer to the config variable.
Definition at line 320 of file CVariableBinding.h. Referenced by CVariableBinding< T >::Dump(), CVariableBinding< T >::InitBindings(), CVariableBinding< T >::setPointer(), and CVariableBinding< T >::setVariable(). |
|
Type of binding (for TCL).
Definition at line 323 of file CVariableBinding.h. Referenced by CVariableBinding< T >::setVariableType(). |
|
Initial value of the variable.
Definition at line 322 of file CVariableBinding.h. Referenced by CVariableBinding< T >::setInitialValue(). |