NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
Public Member Functions | List of all members
CInitSystem Class Reference

#include <InitSystem.h>

Inheritance diagram for CInitSystem:
Inheritance graph
[legend]
Collaboration diagram for CInitSystem:
Collaboration graph
[legend]

Public Member Functions

 CInitSystem (Tcl_Interp *pInterp, DAQ::DDAS::Configuration &config)
 
virtual ~CInitSystem ()
 
virtual int operator() (std::vector< Tcl_Obj * > &argv)
 
- Public Member Functions inherited from CTclCommand
 CTclCommand (Tcl_Interp *pInterp, const char *cmdName)
 
virtual ~CTclCommand ()
 
virtual int operator() (std::vector< Tcl_Obj * > &argv)=0
 

Additional Inherited Members

- Protected Member Functions inherited from CTclCommand
Tcl_Interp * getInterpreter ()
 
void requireExactly (std::vector< Tcl_Obj * > &objv, int nParams)
 
void requireAtMost (std::vector< Tcl_Obj * > &objv, int max)
 
void setResult (const char *result)
 
void setResult (Tcl_Obj *result)
 
void setResult (double value)
 
void setResult (int value)
 
int getInteger (Tcl_Obj *intObj)
 
double getDouble (Tcl_Obj *dblObj)
 

Detailed Description

The init system command takes the configuration passed to it at construction time and initializes access to the Pixie16 system.

Constructor & Destructor Documentation

◆ CInitSystem()

CInitSystem::CInitSystem ( Tcl_Interp *  pInterp,
DAQ::DDAS::Configuration config 
)

constructor

Parameters
pInterp- interpreter on which to execute the command.
config- References the configuration.

◆ ~CInitSystem()

CInitSystem::~CInitSystem ( )
virtual

destructor null – for now

Member Function Documentation

◆ operator()()

int CInitSystem::operator() ( std::vector< Tcl_Obj * > &  argv)
virtual

operator()

  • There must be no parameters.
  • Grab the slot map from the configuration
  • Invoke the InitSystem call.
  • Analyxe results.
    Parameters
    argvthe command line words.
    Returns
    int - TCL_OK if successful TCL_ERROR if not.
    Exceptions
    CXIAExceptionif the API call fails.
    Note
    a result is left only if an error is returned.

Implements CTclCommand.


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