NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | List of all members
CBootCommand Class Reference

#include <CBootCommand.h>

Inheritance diagram for CBootCommand:

Public Member Functions

 CBootCommand (CTCLInterpreter &interp, const char *pCmd, CMyEventSegment *pSeg)
 
virtual ~CBootCommand ()
 
virtual int operator() (CTCLInterpreter &interp, std::vector< CTCLObject > &objv)
 
 CBootCommand (CTCLInterpreter &interp, const char *pCmd, CMyEventSegment *pSeg)
 
virtual int operator() (CTCLInterpreter &interp, std::vector< CTCLObject > &objv)
 

Detailed Description

This class implements the ddasboot command. It is added to to the Tcl interpreter that runs ddasreadout so that the DDAS modules can be booted on demand rather than every time the Readout program starts.

Syntax:

*       ddasboot
*    

Constructor & Destructor Documentation

CBootCommand::CBootCommand ( CTCLInterpreter &  interp,
const char *  pCmd,
CMyEventSegment pSeg 
)

constructor

Parameters
interp- Reference to the interpreter.
pCmd- Command string.
pSeg- Event segment to manipulate.
CBootCommand::~CBootCommand ( )
virtual

Destructor:

Member Function Documentation

int CBootCommand::operator() ( CTCLInterpreter &  interp,
std::vector< CTCLObject > &  objv 
)
virtual

operator() Gets control when the command is invoked.

  • Ensures there are no additional command parameters.
  • Invokes the segments's boot method.
Parameters
interp- interpreter executing the command.
objv- command words.
Returns
int - Status of the command:
  • TCL_OK - successful completion.
  • TCL_ERROR - failure. Human readable reason is in the intepreter result.

The documentation for this class was generated from the following files: