ACQ2XX_API
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
MdsProcessController Class Reference
Inheritance diagram for MdsProcessController:
ProcessController MdsContinuousProcessController

Public Member Functions

 MdsProcessController (AcqDataModel &_dataModel, MdsWrapper *_mdsWrapper)
 MdsProcessController (AcqDataModel &_dataModel)
virtual ~MdsProcessController ()
virtual void processRawFiles (const char *tbdef)
virtual void run (poptContext &opt_context)

Static Public Member Functions

static void set_alarm (bool enable)
static bool isReadableFile (const char *path)

Static Public Attributes

static int rtrim

Protected Member Functions

virtual int dump ()
 returns # events, <0 :: error
void mdsPut (const char *tree, const char *field_fmt)
void onSegmentComplete (int segment)
void createState (const char *tree, const char *field)
virtual bool getDef (char *fname, int maxdef)

Protected Attributes

MdsWrappermdsWrapper
char * eventName
double eventMin
Timershot_time
double last_time
ProcessStatestate
int fd_state
bool first_time
bool remove_when_done
int consecutive_child_errors
const int CHILD_ERROR_MAX

Detailed Description

Definition at line 179 of file MdsProcessController.cpp.


Constructor & Destructor Documentation

MdsProcessController::MdsProcessController ( AcqDataModel _dataModel,
MdsWrapper _mdsWrapper 
)
MdsProcessController::MdsProcessController ( AcqDataModel _dataModel)
MdsProcessController::~MdsProcessController ( ) [virtual]

Definition at line 355 of file MdsProcessController.cpp.


Member Function Documentation

void MdsProcessController::createState ( const char *  tree,
const char *  field 
) [protected]

Definition at line 642 of file MdsProcessController.cpp.

References fd_state, and state.

Referenced by run().

virtual int MdsProcessController::dump ( ) [inline, protected, virtual]

returns # events, <0 :: error

Implements ProcessController.

Reimplemented in MdsContinuousProcessController.

Definition at line 182 of file MdsProcessController.cpp.

bool MdsProcessController::getDef ( char *  fname,
int  maxdef 
) [protected, virtual]

Reimplemented in MdsContinuousProcessController.

Definition at line 234 of file MdsProcessController.cpp.

References Args::config_fp, first_time, isReadableFile(), and set_alarm().

Referenced by run().

bool MdsProcessController::isReadableFile ( const char *  path) [static]

Definition at line 225 of file MdsProcessController.cpp.

Referenced by MdsContinuousProcessController::getDef(), and getDef().

void MdsProcessController::mdsPut ( const char *  tree,
const char *  field_fmt 
) [protected]
void MdsProcessController::onSegmentComplete ( int  segment) [protected]

Definition at line 282 of file MdsProcessController.cpp.

References eventMin, eventName, last_time, shot_time, and Timer::timeFromStart().

Referenced by run().

void MdsProcessController::processRawFiles ( const char *  tbdef) [virtual]

Reimplemented from ProcessController.

Reimplemented in MdsContinuousProcessController.

Definition at line 258 of file MdsProcessController.cpp.

References ProcessController::processRaw(), and ProcessController::src_fmt.

Referenced by run().

void MdsProcessController::run ( poptContext &  opt_context) [virtual]
void MdsProcessController::set_alarm ( bool  enable) [static]

Definition at line 616 of file MdsProcessController.cpp.

References wdt().

Referenced by MdsContinuousProcessController::getDef(), and getDef().


Field Documentation

Definition at line 199 of file MdsProcessController.cpp.

Referenced by run().

Definition at line 198 of file MdsProcessController.cpp.

Referenced by run().

double MdsProcessController::eventMin [protected]

Definition at line 189 of file MdsProcessController.cpp.

Referenced by MdsProcessController(), and onSegmentComplete().

Definition at line 188 of file MdsProcessController.cpp.

Referenced by MdsProcessController(), and onSegmentComplete().

Definition at line 194 of file MdsProcessController.cpp.

Referenced by createState().

Definition at line 195 of file MdsProcessController.cpp.

Referenced by MdsContinuousProcessController::getDef(), and getDef().

double MdsProcessController::last_time [protected]

Definition at line 192 of file MdsProcessController.cpp.

Referenced by onSegmentComplete(), and run().

Definition at line 218 of file MdsProcessController.cpp.

Referenced by MdsProcessController().

Definition at line 191 of file MdsProcessController.cpp.

Referenced by onSegmentComplete(), and run().

Definition at line 193 of file MdsProcessController.cpp.

Referenced by createState().


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