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

In This Package:

Public Member Functions | Static Public Member Functions | Private Attributes
DayaBay::TemporalDataObject Class Reference

Base class for any object participating in the time window. More...

#include <TemporalDataObject.h>

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

List of all members.

Public Member Functions

 TemporalDataObject ()
 Default Constructor.
 ~TemporalDataObject ()
 destructor
virtual const CLID & clID () const
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the ASCII output stream.
virtual const std::string & defLoc ()
 Default location in the TES for this type of object.
virtual void setOutputAddress (const GenericAddress *roa)
 Set the output address when this header object is written out.
virtual void setInputAddress (const GenericAddress *ria)
 Set the input address when this header object is read in.
virtual const TimeStampearliest () const
 Retrieve const The earliest time of the existence of the object.
void setEarliest (const TimeStamp &value)
 Update The earliest time of the existence of the object.
virtual const TimeStamplatest () const
 Retrieve const The latest time of the existence of the object.
void setLatest (const TimeStamp &value)
 Update The latest time of the existence of the object.
virtual const GenericAddress * outputAddress () const
 Retrieve const Output address containing output stream, entry and path (base class of RootIOAddress)
virtual const GenericAddress * inputAddress () const
 Retrieve const Input address containing input stream, entry and path (base class of RootIOAddress)

Static Public Member Functions

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

TimeStamp m_earliest
 The earliest time of the existence of the object.
TimeStamp m_latest
 The latest time of the existence of the object.
GenericAddress * m_outputAddress
 Output address containing output stream, entry and path (base class of RootIOAddress)
GenericAddress * m_inputAddress
 Input address containing input stream, entry and path (base class of RootIOAddress)

Detailed Description

Base class for any object participating in the time window.

Author:
bv@bnl.gov created Thu Dec 5 17:38:14 2013

Definition at line 46 of file TemporalDataObject.h.


Constructor & Destructor Documentation

DayaBay::TemporalDataObject::TemporalDataObject ( ) [inline]

Default Constructor.

Definition at line 51 of file TemporalDataObject.h.

DayaBay::TemporalDataObject::~TemporalDataObject ( )

destructor

Definition at line 6 of file TemporalDataObject.cc.

{
  if(m_outputAddress!=0) {
    m_outputAddress->release();
  }
  if(m_inputAddress!=0) {
    m_inputAddress->release();
  }
}

Member Function Documentation

const CLID & DayaBay::TemporalDataObject::clID ( ) const [inline, virtual]
const CLID & DayaBay::TemporalDataObject::classID ( ) [inline, static]

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 161 of file TemporalDataObject.h.

{
  return CLID_TemporalDataObject;
}
std::ostream & DayaBay::TemporalDataObject::fillStream ( std::ostream &  s) const [inline, virtual]

Fill the ASCII output stream.

Reimplemented from DayaBay::ITemporal.

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 166 of file TemporalDataObject.h.

{
  ITemporal::fillStream(s);
  s << "{ " << "earliest :      " << m_earliest << std::endl
            << "latest :        " << m_latest << std::endl
            << "outputAddress : " << m_outputAddress << std::endl
            << "inputAddress :  " << m_inputAddress << std::endl << " }";
  return s;
}
const std::string & DayaBay::TemporalDataObject::defLoc ( ) [virtual]

Default location in the TES for this type of object.

Definition at line 17 of file TemporalDataObject.cc.

{
    cerr << "TemporalDataObject::defLoc() called.  Some method did not define a default location!" << endl;
    static string empty("");
    return empty;
}
void DayaBay::TemporalDataObject::setOutputAddress ( const GenericAddress *  roa) [virtual]

Set the output address when this header object is written out.

Definition at line 26 of file TemporalDataObject.cc.

{
  // bad input
  if(roa==0) {
    return;
  }
    
  // prepare to set
  if(m_outputAddress!=0) {
    m_outputAddress->release();
  }

  GenericAddress* non_const_roa=const_cast<GenericAddress*>(roa);

  m_outputAddress=non_const_roa;
  m_outputAddress->addRef();
}
void DayaBay::TemporalDataObject::setInputAddress ( const GenericAddress *  ria) [virtual]

Set the input address when this header object is read in.

Definition at line 46 of file TemporalDataObject.cc.

{
  // bad input
  if(ria==0) {
    return;
  }

  // prepare to set
  if(m_inputAddress!=0) {
    m_inputAddress->release();
  }

  GenericAddress* non_const_ria=const_cast<GenericAddress*>(ria);

  m_inputAddress=non_const_ria;
  m_inputAddress->addRef();
}
const TimeStamp & DayaBay::TemporalDataObject::earliest ( ) const [inline, virtual]

Retrieve const The earliest time of the existence of the object.

Implements DayaBay::ITemporal.

Definition at line 177 of file TemporalDataObject.h.

{
  return m_earliest;
}
void DayaBay::TemporalDataObject::setEarliest ( const TimeStamp value) [inline, virtual]

Update The earliest time of the existence of the object.

Implements DayaBay::ITemporal.

Definition at line 182 of file TemporalDataObject.h.

{
  m_earliest = value;
}
const TimeStamp & DayaBay::TemporalDataObject::latest ( ) const [inline, virtual]

Retrieve const The latest time of the existence of the object.

Implements DayaBay::ITemporal.

Definition at line 187 of file TemporalDataObject.h.

{
  return m_latest;
}
void DayaBay::TemporalDataObject::setLatest ( const TimeStamp value) [inline, virtual]

Update The latest time of the existence of the object.

Implements DayaBay::ITemporal.

Definition at line 192 of file TemporalDataObject.h.

{
  m_latest = value;
}
const GenericAddress * DayaBay::TemporalDataObject::outputAddress ( ) const [inline, virtual]

Retrieve const Output address containing output stream, entry and path (base class of RootIOAddress)

Definition at line 197 of file TemporalDataObject.h.

{
  return m_outputAddress;
}
const GenericAddress * DayaBay::TemporalDataObject::inputAddress ( ) const [inline, virtual]

Retrieve const Input address containing input stream, entry and path (base class of RootIOAddress)

Definition at line 202 of file TemporalDataObject.h.

{
  return m_inputAddress;
}
static void* DayaBay::TemporalDataObject::operator new ( size_t  size) [inline, static]

operator new

Reimplemented from DayaBay::ITemporal.

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 102 of file TemporalDataObject.h.

    {
      return ( sizeof(TemporalDataObject) == size ? 
               boost::singleton_pool<TemporalDataObject, sizeof(TemporalDataObject)>::malloc() :
               ::operator new(size) );
    }
static void* DayaBay::TemporalDataObject::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::ITemporal.

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 112 of file TemporalDataObject.h.

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

operator delete

Reimplemented from DayaBay::ITemporal.

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 118 of file TemporalDataObject.h.

    {
      boost::singleton_pool<TemporalDataObject, sizeof(TemporalDataObject)>::is_from(p) ?
      boost::singleton_pool<TemporalDataObject, sizeof(TemporalDataObject)>::free(p) :
      ::operator delete(p);
    }
static void DayaBay::TemporalDataObject::operator delete ( void *  p,
void *  pObj 
) [inline, static]

placement operator delete not sure if really needed, but it does not harm

Reimplemented from DayaBay::ITemporal.

Reimplemented in DayaBay::HeaderObject, and DayaBay::RegistrationSequence.

Definition at line 127 of file TemporalDataObject.h.

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

Member Data Documentation

The earliest time of the existence of the object.

Definition at line 136 of file TemporalDataObject.h.

The latest time of the existence of the object.

Definition at line 137 of file TemporalDataObject.h.

Output address containing output stream, entry and path (base class of RootIOAddress)

Definition at line 138 of file TemporalDataObject.h.

Input address containing input stream, entry and path (base class of RootIOAddress)

Definition at line 139 of file TemporalDataObject.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:58:11 for BaseEvent by doxygen 1.7.4