| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::RunHeader Class Reference

Header containing run description data. More...

#include <RunHeader.h>

Inheritance diagram for DayaBay::RunHeader:

[legend]
Collaboration diagram for DayaBay::RunHeader:
[legend]
List of all members.

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 CLIDclID () const
std::ostream & fillStream (std::ostream &s) const
 Print the run header.
const RunDataContainerrunDataList () const
 Retrieve const Collection of simulated readouts.
RunDataContainerrunDataList ()
 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 TimeStamptimeStamp () const
void setTimeStamp (const TimeStamp &ts)
const std::vector< const DayaBay::IHeader * > findHeaders (const CLID &clid) const
const Contextcontext () 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::JobIdjobId () const
void setJobId (const DayaBay::JobId &value)
virtual void setOutputAddress (const GenericAddress *roa)
virtual void setInputAddress (const GenericAddress *ria)
virtual const TimeStampearliest () const
void setEarliest (const TimeStamp &value)
virtual const TimeStamplatest () const
void setLatest (const TimeStamp &value)
virtual const GenericAddressoutputAddress () const
virtual const GenericAddressinputAddress () const
void setRegistry (IRegistry *pRegistry)
IRegistryregistry () const
LinkManagerlinkMgr () 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 StreamBufferserialize (StreamBuffer &s)
virtual StreamBufferserialize (StreamBuffer &s) const

Static Public Member Functions

static const std::string & defaultLocation ()
 Give access to default location from class scope.
static const CLIDclassID ()
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)

Detailed Description

Header containing run description data.

Author:
dandwyer@caltech.edu created Mon Apr 11 03:37:43 2011

Definition at line 51 of file RunHeader.h.


Member Typedef Documentation

typedef std::vector<DayaBay::RunData*> DayaBay::RunHeader::RunDataContainer

Container for run data.

Definition at line 60 of file RunHeader.h.


Constructor & Destructor Documentation

DayaBay::RunHeader::RunHeader (  )  [inline]

Default Constructor.

Definition at line 63 of file RunHeader.h.

00063 : m_runDataList() {}

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 }


Member Function Documentation

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]

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file RunHeader.h.

00160 {
00161   return CLID_RunHeader;
00162 }

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.

00101     {
00102       return ::operator new (size,pObj);
00103     }

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     }


Member Data Documentation

RunDataContainer DayaBay::RunHeader::m_runDataList [private]

Collection of simulated readouts.

Definition at line 124 of file RunHeader.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:22:13 2011 for RunData by doxygen 1.4.7