#include <CSyncCommand.h>
Detailed Description
Provides the ddas_sync command for the ddas readout program.
- Construction maintains a pointer to the event segment.
- The class registers the "ddas_sync" command on the main interp.
- When invoked, simply calls the synchronize method of the event segment.
- Note
- NOTE A more refined approach would be to refuse to perform the operation when the run is in progress. At this time, however we're going to (heaven help us) rely on the user to know that they really need to do a clock synchronization.
Constructor & Destructor Documentation
CSyncCommand::CSyncCommand |
( |
CTCLInterpreter & |
interp, |
|
|
CMyEventSegment * |
pSeg |
|
) |
| |
Constructor Base class registers the command. We need to save the event processor pointer:
CSyncCommand::~CSyncCommand |
( |
| ) |
|
|
virtual |
destructor Chain to superclass for now.
Member Function Documentation
int CSyncCommand::operator() |
( |
CTCLInterpreter & |
interp, |
|
|
std::vector< CTCLObject > & |
objv |
|
) |
| |
operator() Gets control when the command is invoked. We're just going to
- Esnure there are no more parameters.
- Invoke the event segment's synchronize method.
- Parameters
-
interp | - intepreter that is running this command. |
objv | - words that make up the tcl command. |
- Returns
- int TCL_OK, TCL_ERROR to give the result.
The documentation for this class was generated from the following files: