#include <CInterpreterShell.h>
Inheritance diagram for CInterpreterShell:
Public Methods | |
CInterpreterShell () | |
CInterpreterShell (CInterpreterCore &rExtensions) | |
CInterpreterShell (const CInterpreterShell &rhs) | |
Copy constructor. | |
virtual | ~CInterpreterShell () |
Destructor. | |
CInterpreterShell & | operator= (const CInterpreterShell &rhs) |
int | operator== (const CInterpreterShell &rhs) const |
int | operator!= (const CInterpreterShell &rhs) const |
CInterpreterCore * | getInterpreterCore () |
void | Initialize (CInterpreterCore &rCore) |
virtual void | RegisterExtensions () |
virtual CInterpreterStartup * | getInterpreter ()=0 |
Protected Methods | |
void | setInterpreterCore (CInterpreterCore *const am_pExtensions) |
Private Attributes | |
CInterpreterCore * | m_pExtensions |
|
Default constructor for CInterpreterShell Creates an interpreter shell with a null core extension object. The core extension object must be set via a subsequent call to Initialize Definition at line 306 of file CInterpreterShell.cpp. |
|
Constructor for CInterpreterShell Creates an interpreter shell given the core extensions object.
Definition at line 318 of file CInterpreterShell.cpp. |
|
Copy constructor. Copy construction. This is invoked when e.g. an object is passed by value to a function. The copy constructor makes a clone of the rhs object. The copy is a shallow copy; no attempt will be made to interpret the structure of CInterpreterShell or the core extensions object attached to it. No attempts will be made to do storage tracking either.
Definition at line 336 of file CInterpreterShell.cpp. |
|
Destructor.
Definition at line 314 of file CInterpreterShell.h. |
|
Implemented in CTclInterpreterShell, and CTkInterpreterShell. Referenced by initevt(). |
|
Definition at line 325 of file CInterpreterShell.h. Referenced by CTCLListener::CTCLListener(), CExperiment::GetRunNumber(), CReadoutMain::getScalerPeriod(), CReadoutMain::getTitle(), CExperiment::ReadEvent(), CExperiment::Start(), CExperiment::TriggerRunVariableBuffer(), and CExperiment::TriggerStateVariableBuffer(). |
|
Initialize a class in 2phase construction mode. Allows the client to provide an interpreter object to be used by objects of type CInterpeterShell following the initial construction. This provides support for an alternate 2phase construction, in cases where the interpreter core extension package is not knowable at construction time.
Definition at line 402 of file CInterpreterShell.cpp. References m_pExtensions. Referenced by CTkInterpreterShell::RegisterExtensions(), and CTclInterpreterShell::RegisterExtensions(). |
|
Definition at line 318 of file CInterpreterShell.h. References operator==(). |
|
Assignment operator. This member function supports assignment of an object of this class to an object of the same class. The assignment done here is a shallow copy of the pointers. No attempt is made to interpret the structure of a CInterpreterShell, or the core extensions. No attempts are made to do storage tracking iether.
Definition at line 359 of file CInterpreterShell.cpp. References m_pExtensions. Referenced by CTclInterpeterShell::operator=(). |
|
Equality comparison. Compares this with a right hand side CInterpreterShell object for equality.
Definition at line 381 of file CInterpreterShell.cpp. References m_pExtensions. Referenced by operator!=(). |
|
Registers the extensions defined by the m_pExtensions object. Delegates to the core extensionso object which in turn will extend the interpreter by adding the standard set of run control commands. Note that it is possible to extend the application as a whole by sublcassing CInterpreterCore and constructing this object with the extended interpreter core. The extended interpreter core would then implement RegisterExtensions adding its own extensions and registering the base class set. Reimplemented in CTclInterpreterShell, and CTkInterpreterShell. Definition at line 420 of file CInterpreterShell.cpp. References m_pExtensions, and CInterpreterCore::RegisterExtensions(). |
|
Definition at line 333 of file CInterpreterShell.h. |
|
Definition at line 306 of file CInterpreterShell.h. Referenced by Initialize(), operator=(), operator==(), and RegisterExtensions(). |