#include <DaqBlockHeader.h>
Inheritance diagram for DayaBay::DaqBlockHeader:
Public Types | |
typedef std::vector< IHeader * > | Vector |
typedef std::vector< const IHeader * > | ConstVector |
Public Member Functions | |
virtual const std::string & | defLoc () const |
DaqBlockHeader () | |
Default Constructor. | |
~DaqBlockHeader () | |
destructor | |
virtual const CLID & | clID () const |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const DayaBay::DaqBlock * | daqBlock () const |
Retrieve const Block of DAQ data. | |
void | setDaqBlock (DayaBay::DaqBlock *value) |
Update Block of DAQ data. | |
unsigned int | deltaEvents () const |
Retrieve const The number of events in the ROOT file between this block and its predecesor. | |
void | setDeltaEvents (unsigned int value) |
Update The number of events in the ROOT file between this block and its predecesor. | |
virtual const std::string & | defLoc () |
void | setInputHeaders (const std::vector< const DayaBay::IHeader * > &iheaders) |
void | addInputHeader (const DayaBay::IHeader *iheader) |
const TimeStamp & | timeStamp () const |
void | setTimeStamp (const TimeStamp &ts) |
const std::vector< const DayaBay::IHeader * > | findHeaders (const CLID &clid) const |
const Context & | context () const |
void | setContext (const Context &value) |
int | execNumber () const |
void | setExecNumber (int value) |
const std::vector< unsigned long > & | randomState () const |
void | setRandomState (const std::vector< unsigned long > &value) |
const std::vector< const DayaBay::IHeader * > & | inputHeaders () const |
const DayaBay::JobId & | jobId () const |
void | setJobId (const DayaBay::JobId &value) |
virtual void | setOutputAddress (const GenericAddress *roa) |
virtual void | setInputAddress (const GenericAddress *ria) |
virtual const TimeStamp & | earliest () const |
void | setEarliest (const TimeStamp &value) |
virtual const TimeStamp & | latest () const |
void | setLatest (const TimeStamp &value) |
virtual const GenericAddress * | outputAddress () const |
virtual const GenericAddress * | inputAddress () const |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () const |
unsigned char | version () const |
void | setVersion (unsigned char vsn) |
unsigned long | refCount () const |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
const std::string & | name () const |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Static Public Member Functions | |
static const std::string & | defaultLocation () |
Give access to default location from class scope. | |
static const CLID & | classID () |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
DayaBay::DaqBlock * | m_daqBlock |
Block of DAQ data. | |
unsigned int | m_deltaEvents |
The number of events in the ROOT file between this block and its predecesor. | |
Friends | |
friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 50 of file DaqBlockHeader.h.
DayaBay::DaqBlockHeader::DaqBlockHeader | ( | ) | [inline] |
Default Constructor.
Definition at line 59 of file DaqBlockHeader.h.
00059 : m_daqBlock(0), 00060 m_deltaEvents(0) {}
DayaBay::DaqBlockHeader::~DaqBlockHeader | ( | ) | [inline] |
destructor
Definition at line 145 of file DaqBlockHeader.h.
00146 { 00147 00148 delete m_daqBlock; 00149 00150 }
static const std::string& DayaBay::DaqBlockHeader::defaultLocation | ( | ) | [inline, static] |
Give access to default location from class scope.
Reimplemented from DayaBay::HeaderObject.
Definition at line 55 of file DaqBlockHeader.h.
00055 { return DaqBlockHeaderLocation::Default; }
virtual const std::string& DayaBay::DaqBlockHeader::defLoc | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 56 of file DaqBlockHeader.h.
00056 { return DaqBlockHeaderLocation::Default; }
const CLID & DayaBay::DaqBlockHeader::clID | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 152 of file DaqBlockHeader.h.
00153 { 00154 return DayaBay::DaqBlockHeader::classID(); 00155 }
const CLID & DayaBay::DaqBlockHeader::classID | ( | ) | [inline, static] |
std::ostream & DayaBay::DaqBlockHeader::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::HeaderObject.
Definition at line 162 of file DaqBlockHeader.h.
00163 { 00164 HeaderObject::fillStream(s); 00165 s << "{ " << "daqBlock : " << m_daqBlock << std::endl 00166 << "deltaEvents : " << m_deltaEvents << std::endl << " }"; 00167 return s; 00168 }
const DayaBay::DaqBlock * DayaBay::DaqBlockHeader::daqBlock | ( | ) | const [inline] |
Retrieve const Block of DAQ data.
Definition at line 171 of file DaqBlockHeader.h.
00172 { 00173 return m_daqBlock; 00174 }
void DayaBay::DaqBlockHeader::setDaqBlock | ( | DayaBay::DaqBlock * | value | ) | [inline] |
Update Block of DAQ data.
Definition at line 176 of file DaqBlockHeader.h.
00177 { 00178 m_daqBlock = value; 00179 }
unsigned int DayaBay::DaqBlockHeader::deltaEvents | ( | ) | const [inline] |
Retrieve const The number of events in the ROOT file between this block and its predecesor.
Definition at line 181 of file DaqBlockHeader.h.
00182 { 00183 return m_deltaEvents; 00184 }
void DayaBay::DaqBlockHeader::setDeltaEvents | ( | unsigned int | value | ) | [inline] |
Update The number of events in the ROOT file between this block and its predecesor.
Definition at line 186 of file DaqBlockHeader.h.
00187 { 00188 m_deltaEvents = value; 00189 }
static void* DayaBay::DaqBlockHeader::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::HeaderObject.
Definition at line 91 of file DaqBlockHeader.h.
00092 { 00093 return ( sizeof(DaqBlockHeader) == size ? 00094 boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::malloc() : 00095 ::operator new(size) ); 00096 }
static void* DayaBay::DaqBlockHeader::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Reimplemented from DayaBay::HeaderObject.
Definition at line 101 of file DaqBlockHeader.h.
static void DayaBay::DaqBlockHeader::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::HeaderObject.
Definition at line 107 of file DaqBlockHeader.h.
00108 { 00109 boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::is_from(p) ? 00110 boost::singleton_pool<DaqBlockHeader, sizeof(DaqBlockHeader)>::free(p) : 00111 ::operator delete(p); 00112 }
static void DayaBay::DaqBlockHeader::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::HeaderObject.
Definition at line 116 of file DaqBlockHeader.h.
00117 { 00118 ::operator delete (p, pObj); 00119 }
unsigned int DayaBay::DaqBlockHeader::m_deltaEvents [private] |
The number of events in the ROOT file between this block and its predecesor.
Definition at line 126 of file DaqBlockHeader.h.