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