Belle II Software  release-08-01-10
RunInfoBuffer Class Reference
Collaboration diagram for RunInfoBuffer:

Public Types

enum  State {
  NOTREADY = 0 ,
  READY = 1 ,
  RUNNING = 2 ,
  PAUSING = 3 ,
  PAUSED = 4 ,
  RESUMING = 5
}
 
enum  EFlag {
  NOERRO ,
  PROCESS_DOWN = 0x01 ,
  SOCKET_BIND = 0x02 ,
  SOCKET_IN = 0x04 ,
  SOCKET_OUT = 0x08 ,
  EVENTFORMAT = 0x10 ,
  CPRFIFO_EMPTY = 0x20 ,
  CPRFIFO_FULL = 0x40 ,
  CPRFIFO_LEF_FULL = 0x80
}
 

Public Member Functions

size_t size ()
 
bool open (const std::string &nodename, int nodeid=0, bool recreate=false)
 
bool init ()
 
bool close ()
 
bool unlink ()
 
bool lock ()
 
bool unlock ()
 
bool wait ()
 
bool wait (int time)
 
bool notify ()
 
void clear ()
 
const std::string getName () const
 
const std::string getPath () const
 
bool isAvailable () const
 
ronode_infoget ()
 
unsigned int getNodeId () const
 
unsigned int getState () const
 
unsigned int getErrorFlag () const
 
unsigned int getExpNumber () const
 
unsigned int getRunNumber () const
 
unsigned int getSubNumber () const
 
int getInputPort () const
 
int getInputAddress () const
 
unsigned int getInputCount () const
 
unsigned long long getInputNBytes () const
 
int getOutputPort () const
 
int getOutputAddress () const
 
unsigned int getOutputCount () const
 
unsigned long long getOutputNBytes () const
 
void setNodeId (unsigned int id)
 
void setState (State state)
 
void setErrorFlag (EFlag eflag)
 
void setExpNumber (unsigned int expno)
 
void setRunNumber (unsigned int runno)
 
void setSubNumber (unsigned int subno)
 
void setInputPort (int port)
 
void setInputAddress (int addr)
 
void setInputCount (unsigned int count)
 
void setInputNBytes (unsigned long long nbyte)
 
void addInputCount (unsigned int count)
 
void addInputNBytes (unsigned long long nbyte)
 
void setOutputPort (int port)
 
void setOutputAddress (int addr)
 
void setOutputCount (unsigned int count)
 
void setOutputNBytes (unsigned long long nbyte)
 
void addOutputCount (unsigned int count)
 
void addOutputNBytes (unsigned long long nbyte)
 
event_headergetEventHeader ()
 
void copyEventHeader (int *buf)
 
bool isNotReady ()
 
bool isReady ()
 
bool isRunning ()
 
bool isPausing ()
 
bool isPaused ()
 
bool isResuming ()
 
bool waitRunning (int timeout)
 
bool waitReady (int timeout)
 
bool reportRunning ()
 
bool reportError (EFlag eflag)
 
bool reportReady ()
 
bool reportNotReady ()
 

Private Attributes

std::string m_nodename
 
std::string m_path
 
SharedMemory m_memory
 
ronode_infom_info
 
MMutex m_mutex
 
MCond m_cond
 

Detailed Description

Definition at line 22 of file RunInfoBuffer.h.


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