#include <RunHeader.h>
Inheritance diagram for DayaBay::RunHeader:
Public Types | |
| typedef std::vector< DayaBay::RunData * > | RunDataContainer |
| Container for run data. | |
| typedef std::vector< IHeader * > | Vector |
| typedef std::vector< const IHeader * > | ConstVector |
Public Member Functions | |
| virtual const std::string & | defLoc () const |
| RunHeader () | |
| Default Constructor. | |
| ~RunHeader () | |
| Destructor. | |
| virtual const CLID & | clID () const |
| std::ostream & | fillStream (std::ostream &s) const |
| Print the run header. | |
| const RunDataContainer & | runDataList () const |
| Retrieve const Collection of simulated readouts. | |
| RunDataContainer & | runDataList () |
| Retrieve Collection of simulated readouts. | |
| void | setRunDataList (const RunDataContainer &value) |
| Update Collection of simulated readouts. | |
| 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 | |
| RunDataContainer | m_runDataList |
| Collection of simulated readouts. | |
Friends | |
| friend friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Definition at line 51 of file RunHeader.h.
| typedef std::vector<DayaBay::RunData*> DayaBay::RunHeader::RunDataContainer |
| DayaBay::RunHeader::RunHeader | ( | ) | [inline] |
| DayaBay::RunHeader::~RunHeader | ( | ) | [inline] |
Destructor.
Definition at line 143 of file RunHeader.h.
00144 { 00145 00146 RunDataContainer::iterator it, done = m_runDataList.end(); 00147 for (it = m_runDataList.begin(); it != done; ++it) { 00148 delete *it; 00149 } 00150 m_runDataList.clear(); 00151 00152 }
| static const std::string& DayaBay::RunHeader::defaultLocation | ( | ) | [inline, static] |
Give access to default location from class scope.
Reimplemented from DayaBay::HeaderObject.
Definition at line 56 of file RunHeader.h.
00056 { return RunHeaderLocation::Default; }
| virtual const std::string& DayaBay::RunHeader::defLoc | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 57 of file RunHeader.h.
00057 { return RunHeaderLocation::Default; }
| const CLID & DayaBay::RunHeader::clID | ( | ) | const [inline, virtual] |
Reimplemented from DayaBay::HeaderObject.
Definition at line 154 of file RunHeader.h.
00155 { 00156 return DayaBay::RunHeader::classID(); 00157 }
| const CLID & DayaBay::RunHeader::classID | ( | ) | [inline, static] |
| std::ostream & DayaBay::RunHeader::fillStream | ( | std::ostream & | s | ) | const [virtual] |
Print the run header.
Reimplemented from DayaBay::HeaderObject.
Definition at line 3 of file RunHeader.cc.
00004 { 00005 HeaderObject::fillStream(s); 00006 00007 size_t siz = m_runDataList.size(); 00008 s << "{ " 00009 << siz << " runs : " << std::endl; 00010 00011 DayaBay::RunHeader::RunDataContainer::const_iterator it, done 00012 = m_runDataList.end(); 00013 for (it=m_runDataList.begin(); it != done; ++it) { 00014 s << *it << std::endl; 00015 } 00016 s << "}"; 00017 return s; 00018 }
| const DayaBay::RunHeader::RunDataContainer & DayaBay::RunHeader::runDataList | ( | ) | const [inline] |
Retrieve const Collection of simulated readouts.
Definition at line 164 of file RunHeader.h.
00165 { 00166 return m_runDataList; 00167 }
| DayaBay::RunHeader::RunDataContainer & DayaBay::RunHeader::runDataList | ( | ) | [inline] |
Retrieve Collection of simulated readouts.
Definition at line 169 of file RunHeader.h.
00170 { 00171 return m_runDataList; 00172 }
| void DayaBay::RunHeader::setRunDataList | ( | const RunDataContainer & | value | ) | [inline] |
Update Collection of simulated readouts.
Definition at line 174 of file RunHeader.h.
00175 { 00176 m_runDataList = value; 00177 }
| static void* DayaBay::RunHeader::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::HeaderObject.
Definition at line 90 of file RunHeader.h.
00091 { 00092 return ( sizeof(RunHeader) == size ? 00093 boost::singleton_pool<RunHeader, sizeof(RunHeader)>::malloc() : 00094 ::operator new(size) ); 00095 }
| static void* DayaBay::RunHeader::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 100 of file RunHeader.h.
| static void DayaBay::RunHeader::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::HeaderObject.
Definition at line 106 of file RunHeader.h.
00107 { 00108 boost::singleton_pool<RunHeader, sizeof(RunHeader)>::is_from(p) ? 00109 boost::singleton_pool<RunHeader, sizeof(RunHeader)>::free(p) : 00110 ::operator delete(p); 00111 }
| static void DayaBay::RunHeader::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 115 of file RunHeader.h.
00116 { 00117 ::operator delete (p, pObj); 00118 }
1.4.7