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

#include <WriteChanPar.h>

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

Public Member Functions

 CWriteChanPar (Tcl_Interp *pInterp)
 
virtual ~CWriteChanPar ()
 
virtual int operator() (std::vector< Tcl_Obj * > &objv)
 
- 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

This class wraps the Tcl command pixie16::writechanpar around the XIA api Pixie16WriteSglChanPar. The command takes the following parameters in order:

Constructor & Destructor Documentation

◆ CWriteChanPar()

CWriteChanPar::CWriteChanPar ( Tcl_Interp *  pInterp)

constructor

Parameters
pInterp- interpreter on which to register the command.

◆ ~CWriteChanPar()

CWriteChanPar::~CWriteChanPar ( )
virtual

Member Function Documentation

◆ operator()()

int CWriteChanPar::operator() ( std::vector< Tcl_Obj * > &  objv)
virtual

operator() Execute the command

Parameters
objv- the command words.
Returns
int - TCL_OK On success, TCL_ERROR if failed.
Note
the interpreter result is only non-null if the command failed, in which case it's the human readable failure reason
Exceptions
CXIAExceptionif the API call fails.

Implements CTclCommand.


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