#include <CBinding.h>
Inheritance diagram for CBinding< T >:
Public Member Functions | |
virtual void | InitBindings (CTCLInterpreter &rInterp)=0 |
virtual void | Commit (CTCLInterpreter &rInterp)=0 |
virtual void | ShutdownBindings (CTCLInterpreter &rInterp)=0 |
virtual void | Dump (int fd)=0 |
int | VariableType (T item) |
STD (string) ItemToString(T Item) |
Definition at line 322 of file CBinding.h.
|
This function is called just after a configuration script or set of configuration scripts have been read to perform any actions required to commit the read in Tcl values to the variables. For example, an associative array bindings might need to fetch the individual values from Tcl array elements.
Implements CTypeFreeBinding. Implemented in CArrayBinding< T >, CAssocArrayBinding< T >, and CVariableBinding< T >. |
|
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 CTypeFreeBinding. Implemented in CArrayBinding< T >, CAssocArrayBinding< T >, and CVariableBinding< T >. |
|
This function will be called just prior to reading in a configuration file. The Tcl Interpreter has been set up and initialized. The Init function can do any preparation required by the binding prior to readin (e.g. a simple binding >might< bind the contained variable to a Tcl variable
Implements CTypeFreeBinding. Implemented in CArrayBinding< T >, CAssocArrayBinding< T >, and CVariableBinding< T >. |
|
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 CTypeFreeBinding. Implemented in CArrayBinding< T >, CAssocArrayBinding< T >, and CVariableBinding< T >. |
|
Item to string conversion: Converts an item of type T to its string representation.
Reimplemented in CArrayBinding< T >, CAssocArrayBinding< T >, and CVariableBinding< T >. Definition at line 392 of file CBinding.h. |
|
Returns the TCL code for the type of variable being bound to: This can be one of:
Definition at line 374 of file CBinding.h. Referenced by CAssocArrayBinding< T >::CAssocArrayBinding(). |