ACQ2XX_API
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
ProcessController Class Reference

#include <ProcessController.h>

Inheritance diagram for ProcessController:
IncomingProcessController LiveFeedProcessController MdsProcessController OfflineProcessController LivePrePostProcessController SubsetProcessController MdsContinuousProcessController LiveLogProcessController LiveMeanProcessController

Public Member Functions

 ProcessController (AcqDataModel &_dataModel)
virtual ~ProcessController ()
virtual void run (poptContext &opt_context)=0
void addCal (const char *rawfname)

Static Public Member Functions

static int flen (const char *fname)
static ProcessControllercreate (const string key, AcqDataModel &dataModel)
 factory

Data Fields

AcqDataModeldataModel

Protected Member Functions

virtual void processAction (void *pdata, int len, int tblock)
void processRaw (const char *rawfname, int tblock=0)
virtual void processRawFiles (const char *tbdef)
virtual int processTblock (const char *tbdef)
 returns # events, <0 :: error
virtual int dump ()=0
 returns # events, <0 :: error
virtual void parentDump ()
 executed on parent side of fork() after dump.

Protected Attributes

bool use_fork
int nice2
int euid
const char * src_fmt
int show_exit_level
ValidatorDatavalidatorData

Detailed Description

Definition at line 51 of file ProcessController.h.


Constructor & Destructor Documentation

ProcessController::ProcessController ( AcqDataModel _dataModel)

Definition at line 62 of file ProcessController.cpp.

References euid, getenvInt(), nice2, and use_fork.

virtual ProcessController::~ProcessController ( ) [inline, virtual]

Definition at line 79 of file ProcessController.h.


Member Function Documentation

void ProcessController::addCal ( const char *  rawfname)
ProcessController * ProcessController::create ( const string  key,
AcqDataModel dataModel 
) [static]
virtual int ProcessController::dump ( ) [protected, pure virtual]
int ProcessController::flen ( const char *  fname) [static]

Definition at line 80 of file ProcessController.cpp.

Referenced by processRaw().

virtual void ProcessController::parentDump ( ) [inline, protected, virtual]

executed on parent side of fork() after dump.

Reimplemented in LiveLogProcessController.

Definition at line 74 of file ProcessController.h.

Referenced by processTblock().

void ProcessController::processAction ( void *  pdata,
int  len,
int  tblock 
) [protected, virtual]
void ProcessController::processRaw ( const char *  rawfname,
int  tblock = 0 
) [protected]
void ProcessController::processRawFiles ( const char *  tbdef) [protected, virtual]

Reimplemented in MdsProcessController, MdsContinuousProcessController, and IncomingProcessController.

Definition at line 299 of file ProcessController.cpp.

References processRaw(), and src_fmt.

Referenced by processTblock().

int ProcessController::processTblock ( const char *  tbdef) [protected, virtual]
virtual void ProcessController::run ( poptContext &  opt_context) [pure virtual]

Field Documentation

int ProcessController::euid [protected]

Definition at line 58 of file ProcessController.h.

Referenced by ProcessController(), and processTblock().

int ProcessController::nice2 [protected]

Definition at line 57 of file ProcessController.h.

Referenced by ProcessController(), and processTblock().

const char* ProcessController::src_fmt [protected]
bool ProcessController::use_fork [protected]

Definition at line 56 of file ProcessController.h.

Referenced by ProcessController(), and processTblock().


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