QDriver Class Reference

Inheritance diagram for QDriver:

QBaseModule MGuiDriver MLCBaseController MTestDriver MWPSlowController MLCBoloCheckController MLCEleCheckController

List of all members.


Detailed Description

Pure abstract class that every Diana driver should inherit from.

Author:
M. Pallavicini, M. Vignati
  • Config example:
       driver ModuleName
      # mandatory parameters
       verbosity = info
       enable = true
      # module specific parameters
       myvarint = 1
       myvardouble = 1.0
       myvarstring = hellocuore!
       myvarbool = true
       endmod
       
  • Parameters:
    • verbosity: only messages above the verbosity level are displaied:
      • debug
      • info
      • warn
      • error
      • panic
    • enable:
      • true: module will be executed inside the sequence
      • false: module will not be executed

Public Member Functions

 QDriver (const std::string &, QSequence *s)
bool StopRun ()
void SetModulesList (const std::vector< QBaseModule * > &modList)
const std::vector< QBaseModule * > & GetModulesList () const

Protected Types

enum  ActionId {
  ACT_NONE, ACT_NEXTEV, ACT_PREVEV, ACT_GOTOEV,
  ACT_RERUN, ACT_QUIT
}

Protected Member Functions

std::map< std::string, QVdt * > GetModuleParameters (const std::string &mod, int occ)
const QErrorJumpToEvent (unsigned int event)
 next iteration diana will jump to event
virtual Action Init ()=0
 Init method is called before event loop.
virtual Action Do (QEvent *ev)=0
 Doit method is called for each event, getting the event as argument.
virtual Action Done ()=0
 Done method is called after event loop.

Private Member Functions

void Begin ()
 Begin method is called before event loop.
QEventProcess (QEvent *ev)
 Process method is called for each event, getting the event as argument.
void End ()
 End method is called after event loop.
void HandleAction (Action action)

Private Attributes

Action fLastAction
bool fStopRun
int fCurrentEventNumber
std::vector< QBaseModule * > fModules

Classes

class  Action

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

Generated on Tue Nov 16 10:50:05 2010 for CUORE Software by  doxygen 1.5.6