#include <CInterpreterCore.h>
Public Methods | |
CInterpreterCore (CInterpreterStartup &rInterp) | |
Default constructor. | |
virtual | ~CInterpreterCore () |
CBeginCommand * | getBegin () |
CEndCommand * | getEnd () |
CPauseCommand * | getPause () |
CResumeCommand * | getResume () |
CRunVariableCommand * | getRunVariables () |
CStateVariableCommand * | getStateVariables () |
CConstVariableCommand * | getConstVariables () |
CTagBaseCommand * | getTagBase () |
CExitCommand * | getExit () |
CInterpreterStartup * | getStartup () |
CConstVariable * | getState () |
CConstVariable * | getStartTime () |
void | setState (const string &rNewValue) |
void | setStartTime (const string &rNewValue) |
void | setEvents (unsigned int nValue) |
void | setWords (unsigned int nValue) |
virtual void | RegisterExtensions () |
Private Methods | |
CInterpreterCore (const CInterpreterCore &rhs) | |
Copy constructor (not allowed). | |
CInterpreterCore & | operator= (const CInterpreterCore &rhs) |
Assignment (not allowed). | |
int | operator== (const CInterpreterCore &rhs) const |
Comparison for equality. (not allowed). | |
int | operator!= (const CInterpreterCore &rhs) const |
!= operator (not allowed) | |
Private Attributes | |
CInterpreterStartup & | m_rInterpreter |
Interpreter startup for this object. | |
CBeginCommand * | m_pBegin |
Pointer to the Begin command object. | |
CEndCommand * | m_pEnd |
Pointer to the End command object. | |
CPauseCommand * | m_pPause |
Pointer to the Pause command object. | |
CResumeCommand * | m_pResume |
Pointer to the Resume command object. | |
CRunVariableCommand * | m_pRunVariable |
Pointer to object maintaining runvariables. | |
CStateVariableCommand * | m_pStateVariable |
Pointer to object maintaining state vars. | |
CTagBaseCommand * | m_pTagBase |
Pointer to object maintaining latent tagbase support. | |
CExitCommand * | m_pExit |
Pointer to safe exit command object. | |
CConstVariableCommand | m_Const |
const command object default const ok. | |
CTclAuthorizer * | m_pAuthorizer |
Authentication module for server. | |
CConstVariable * | m_pState |
Run state. | |
CConstVariable * | m_pStartTime |
Run Start Time. | |
CConstVariable * | m_pEvents |
Events in the run. | |
CConstVariable * | m_pWords |
Words acquired in run. |
Definition at line 337 of file CInterpreterCore.h.
|
Default constructor. Construct an interpreter core. Saves the interpreter startup object and constructs the commands. The commands are registered from the RegisterExtensions entry point.
Definition at line 302 of file CInterpreterCore.cpp. |
|
Destructor: Release all dynamically produced members. In this case each member is a command object. It is unregistered and deleted. Definition at line 327 of file CInterpreterCore.cpp. References m_Const, m_pAuthorizer, m_pBegin, m_pEnd, m_pExit, m_pPause, m_pResume, m_pRunVariable, m_pState, m_pStateVariable, and m_pTagBase. |
|
Copy constructor (not allowed).
|
|
Definition at line 369 of file CInterpreterCore.h. |
|
Definition at line 387 of file CInterpreterCore.h. References m_Const. |
|
Definition at line 372 of file CInterpreterCore.h. |
|
Definition at line 393 of file CInterpreterCore.h. |
|
Definition at line 375 of file CInterpreterCore.h. |
|
Definition at line 378 of file CInterpreterCore.h. |
|
Definition at line 381 of file CInterpreterCore.h. Referenced by CMyExperiment::SetupRunVariables(), and CExperiment::TriggerRunVariableBuffer(). |
|
Definition at line 403 of file CInterpreterCore.h. References m_pStartTime. |
|
Definition at line 397 of file CInterpreterCore.h. References m_rInterpreter. Referenced by CTCLListener::CTCLListener(). |
|
Definition at line 400 of file CInterpreterCore.h. References m_pState. |
|
Definition at line 384 of file CInterpreterCore.h. Referenced by CExperiment::GetRunNumber(), CReadoutMain::getScalerPeriod(), CReadoutMain::getTitle(), CMyExperiment::SetupStateVariables(), and CExperiment::TriggerStateVariableBuffer(). |
|
Definition at line 390 of file CInterpreterCore.h. |
|
!= operator (not allowed)
|
|
Assignment (not allowed).
|
|
Comparison for equality. (not allowed).
|
|
Register the command extensions associated with a Readout interpreter. These extensions support:
Definition at line 385 of file CInterpreterCore.cpp. References CTclAuthorizer::AddHost(), CReadoutMain::AddUserCommands(), CStateVariableCommand::begin(), CStateVariableCommand::Create(), CStateVariableCommand::end(), CReadoutMain::getExperiment(), CReadoutMain::getInstance(), CReadoutMain::getPort(), CReadoutMain::getServer(), CReadoutMain::getWindowed(), m_Const, m_pAuthorizer, m_pBegin, m_pEnd, m_pEvents, m_pExit, m_pPause, m_pResume, m_pRunVariable, m_pStartTime, m_pState, m_pStateVariable, m_pTagBase, m_pWords, m_rInterpreter, CReadoutMain::SetupRunVariables(), CReadoutMain::SetupStateVariables(), and StateVariableIterator. Referenced by CTkInterpreterShell::RegisterExtensions(), CTclInterpreterShell::RegisterExtensions(), and CInterpreterShell::RegisterExtensions(). |
|
Set a current value for the number of events acquired.
Definition at line 570 of file CInterpreterCore.cpp. References m_pEvents. Referenced by CExperiment::ReadEvent(), and CExperiment::Start(). |
|
Definition at line 411 of file CInterpreterCore.h. References m_pStartTime. Referenced by CExperiment::Start(). |
|
Definition at line 408 of file CInterpreterCore.h. References m_pState. |
|
Set the value of the "words" const. This const tells you how many words of data have been acquired in the current run.
Definition at line 582 of file CInterpreterCore.cpp. References m_pWords. Referenced by CExperiment::ReadEvent(), and CExperiment::Start(). |
|
const command object default const ok.
Definition at line 350 of file CInterpreterCore.h. Referenced by getConstVariables(), RegisterExtensions(), and ~CInterpreterCore(). |
|
Authentication module for server.
Definition at line 351 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to the Begin command object.
Definition at line 342 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to the End command object.
Definition at line 343 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Events in the run.
Definition at line 354 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and setEvents(). |
|
Pointer to safe exit command object.
Definition at line 349 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to the Pause command object.
Definition at line 344 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to the Resume command object.
Definition at line 345 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to object maintaining runvariables.
Definition at line 346 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Run Start Time.
Definition at line 353 of file CInterpreterCore.h. Referenced by getStartTime(), RegisterExtensions(), and setStartTime(). |
|
Run state.
Definition at line 352 of file CInterpreterCore.h. Referenced by getState(), RegisterExtensions(), setState(), and ~CInterpreterCore(). |
|
Pointer to object maintaining state vars.
Definition at line 347 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Pointer to object maintaining latent tagbase support.
Definition at line 348 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and ~CInterpreterCore(). |
|
Words acquired in run.
Definition at line 355 of file CInterpreterCore.h. Referenced by RegisterExtensions(), and setWords(). |
|
Interpreter startup for this object.
Definition at line 341 of file CInterpreterCore.h. Referenced by getStartup(), and RegisterExtensions(). |