/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::JobHeader Class Reference

Header containing job configuration information. More...

#include <JobHeader.h>

Inheritance diagram for DayaBay::JobHeader:
Inheritance graph
[legend]
Collaboration diagram for DayaBay::JobHeader:
Collaboration graph
[legend]

List of all members.

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 JobInfoContainerjobInfoList () const
 Retrieve const Collection of job information.
JobInfoContainerjobInfoList ()
 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 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

JobInfoContainer m_jobInfoList
 Collection of job information.

Detailed Description

Header containing job configuration information.

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

Definition at line 51 of file JobHeader.h.


Member Typedef Documentation

Container for job info.

Definition at line 60 of file JobHeader.h.


Constructor & Destructor Documentation

DayaBay::JobHeader::JobHeader ( ) [inline]

Default Constructor.

Definition at line 63 of file JobHeader.h.

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

Destructor.

Definition at line 143 of file JobHeader.h.

{

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

Member Function Documentation

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.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 57 of file JobHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 154 of file JobHeader.h.

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

Reimplemented from DayaBay::HeaderObject.

Definition at line 159 of file JobHeader.h.

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

{
  HeaderObject::fillStream(s);

  size_t siz = m_jobInfoList.size();
  s << "{ " 
    << siz << " jobs : " << std::endl;
  
  DayaBay::JobHeader::JobInfoContainer::const_iterator it, done 
    = m_jobInfoList.end();
  for (it=m_jobInfoList.begin(); it != done; ++it) {
    s << *it << std::endl;
  }
  s << "}";
  return s;
}
const DayaBay::JobHeader::JobInfoContainer & DayaBay::JobHeader::jobInfoList ( ) const [inline]

Retrieve const Collection of job information.

Definition at line 164 of file JobHeader.h.

{
  return m_jobInfoList;
}
DayaBay::JobHeader::JobInfoContainer & DayaBay::JobHeader::jobInfoList ( ) [inline]

Retrieve Collection of job information.

Definition at line 169 of file JobHeader.h.

{
  return m_jobInfoList;
}
void DayaBay::JobHeader::setJobInfoList ( const JobInfoContainer value) [inline]

Update Collection of job information.

Definition at line 174 of file JobHeader.h.

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

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

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

operator delete

Reimplemented from DayaBay::HeaderObject.

Definition at line 106 of file JobHeader.h.

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

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

Member Data Documentation

Collection of job information.

Definition at line 124 of file JobHeader.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 09:59:11 for JobInfo by doxygen 1.7.4