#include <CRunVariableCommand.h>
Public Methods | |
CRunVariableCommand () | |
Default constructor. | |
virtual | ~CRunVariableCommand () |
Destructor. | |
virtual int | operator() (CTCLInterpreter &rInterp, CTCLResult &rResult, int argc, char **argv) |
int | Create (CTCLInterpreter &rInterp, CTCLResult &rResult, int argc, char **argv) |
int | Delete (CTCLInterpreter &rInterp, CTCLResult &rResult, int argc, char **argv) |
int | List (CTCLInterpreter &rInterp, CTCLResult &rResult, int argc, char **argv) |
CRunVariable * | Create (const string &rName, const string &rInitialValue=string("-uninitialized")) |
void | Delete (const string &rName) |
void | Delete (RunVariableIterator &rIter) |
RunVariableIterator | begin () |
RunVariableIterator | end () |
size_t | size () |
RunVariableIterator | find (const string &rName) |
Protected Methods | |
void | Usage (CTCLResult &rResult) |
Private Methods | |
CRunVariableCommand (const CRunVariableCommand &rhs) | |
Copy constructor. | |
CRunVariableCommand & | operator= (const CRunVariableCommand &rhs) |
Assignment. | |
int | operator== (const CRunVariableCommand &rhs) const |
Comparison for equality. | |
int | operator!= (const CRunVariableCommand &rhs) const |
Private Attributes | |
RunVariableList | m_RunVariables |
|
Default constructor. Construct the command object. The object is bound to no interprater the command name, which will eventually be registered is: runvar Definition at line 319 of file CRunVariableCommand.cpp. |
|
Destructor. Destructor... we need to delete all the items pointed to: Definition at line 329 of file CRunVariableCommand.cpp. References begin(), end(), and RunVariableIterator. |
|
Copy constructor.
|
|
Returns an iterator to the list of variables which are considered to be run variables.
Definition at line 596 of file CRunVariableCommand.cpp. References m_RunVariables. Referenced by List(), CExperiment::TriggerRunVariableBuffer(), and ~CRunVariableCommand(). |
|
Create a run variable programmatically
Definition at line 655 of file CRunVariableCommand.cpp. References end(), find(), and m_RunVariables. |
|
Dispatched to from the operator() member function. This member function has the form: runvar name [value] If the variable does not exist it is created, and, if no initializer is specified, is set to "-uninitialized-" If the variable exists and no initializer is specified, the value is not changed.
Definition at line 444 of file CRunVariableCommand.cpp. References end(), find(), m_RunVariables, RunVariableIterator, and Usage(). Referenced by operator()(). |
|
Delete programmatically a run variable given an iterator to it:
Definition at line 693 of file CRunVariableCommand.cpp. References m_RunVariables, and RunVariableIterator. |
|
Delete (programmatically) a run variable given its name.
Definition at line 678 of file CRunVariableCommand.cpp. References end(), find(), m_RunVariables, and RunVariableIterator. |
|
Removes a run variable from the list of run variables. The variable continues to be a Tcl/Tk variable; however it is no longer written to buffers when the run is active. The form of this command is: runvariable -delete name
Definition at line 511 of file CRunVariableCommand.cpp. References end(), find(), RunVariableIterator, and Usage(). Referenced by operator()(). |
|
Returns an end loop interator for the set of run variables.
Definition at line 609 of file CRunVariableCommand.cpp. References m_RunVariables. Referenced by Create(), Delete(), List(), CExperiment::TriggerRunVariableBuffer(), and ~CRunVariableCommand(). |
|
Definition at line 358 of file CRunVariableCommand.h. References m_RunVariables, and RunVariableIterator. |
|
Lists the set of run variables which match a patter which can contain glob wildcard specials. This is sort of like info var but for the set of variables which are run variables.
Definition at line 567 of file CRunVariableCommand.cpp. References begin(), end(), and Usage(). Referenced by operator()(). |
|
|
|
Executes the runvariable command. This command has the following subcommands:
Definition at line 381 of file CRunVariableCommand.cpp. |
|
Assignment.
|
|
Comparison for equality.
|
|
Returns the number of run variables currently defined.
Definition at line 622 of file CRunVariableCommand.cpp. References m_RunVariables. |
|
Appends usage information to the rResult string. Definition at line 630 of file CRunVariableCommand.cpp. Referenced by Create(), Delete(), List(), and operator()(). |
|
Definition at line 316 of file CRunVariableCommand.h. Referenced by begin(), Create(), Delete(), end(), find(), and size(). |