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