/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::RunHeader Class Reference

Header containing run description data. More...

#include <RunHeader.h>

Inheritance diagram for DayaBay::RunHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::RunHeader:
Collaboration graph
[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 CLID & clID () 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 clearInputHeaders ()
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 std::vector< const
DayaBay::IHeader * > 
findHeaders (const std::string &name) 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 GenericAddress * outputAddress () const
virtual const GenericAddress * inputAddress () 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.

Detailed Description

Header containing run description data.

Author:
dandwyer@caltech.edu created Thu Dec 5 17:46:43 2013

Definition at line 51 of file RunHeader.h.


Member Typedef Documentation

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.

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

Destructor.

Definition at line 143 of file RunHeader.h.

{

          RunDataContainer::iterator it, done = m_runDataList.end();
          for (it = m_runDataList.begin(); it != done; ++it) {
            delete *it;
          }
          m_runDataList.clear();
        
}

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.

virtual const std::string& DayaBay::RunHeader::defLoc ( ) const [inline, virtual]

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file RunHeader.h.

const CLID & DayaBay::RunHeader::clID ( ) const [inline, virtual]

Reimplemented from DayaBay::HeaderObject.

Definition at line 154 of file RunHeader.h.

const CLID & DayaBay::RunHeader::classID ( ) [inline, static]

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file RunHeader.h.

{
  return CLID_RunHeader;
}
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.

{
  HeaderObject::fillStream(s);

  size_t siz = m_runDataList.size();
  s << "{ " 
    << siz << " runs : " << std::endl;
  
  DayaBay::RunHeader::RunDataContainer::const_iterator it, done 
    = m_runDataList.end();
  for (it=m_runDataList.begin(); it != done; ++it) {
    s << *it << std::endl;
  }
  s << "}";
  return s;
}
const DayaBay::RunHeader::RunDataContainer & DayaBay::RunHeader::runDataList ( ) const [inline]

Retrieve const Collection of simulated readouts.

Definition at line 164 of file RunHeader.h.

{
  return m_runDataList;
}
DayaBay::RunHeader::RunDataContainer & DayaBay::RunHeader::runDataList ( ) [inline]

Retrieve Collection of simulated readouts.

Definition at line 169 of file RunHeader.h.

{
  return m_runDataList;
}
void DayaBay::RunHeader::setRunDataList ( const RunDataContainer value) [inline]

Update Collection of simulated readouts.

Definition at line 174 of file RunHeader.h.

{
  m_runDataList = value;
}
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.

    {
      return ( sizeof(RunHeader) == size ? 
               boost::singleton_pool<RunHeader, sizeof(RunHeader)>::malloc() :
               ::operator new(size) );
    }
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.

    {
      return ::operator new (size,pObj);
    }
static void DayaBay::RunHeader::operator delete ( void *  p) [inline, static]

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 106 of file RunHeader.h.

    {
      boost::singleton_pool<RunHeader, sizeof(RunHeader)>::is_from(p) ?
      boost::singleton_pool<RunHeader, sizeof(RunHeader)>::free(p) :
      ::operator delete(p);
    }
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.

    {
      ::operator delete (p, pObj);
    }

Member Data Documentation

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 Fri May 16 2014 10:00:09 for RunData by doxygen 1.7.4