Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

ServiceHistory Class Reference

ServiceHistory class definition. More...

#include <ServiceHistory.h>

Inheritance diagram for ServiceHistory:
Inheritance graph
[legend]
Collaboration diagram for ServiceHistory:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< Property * > PropertyList

Public Member Functions

 ServiceHistory ()
 ServiceHistory (const IService *, const JobHistory *)
 ServiceHistory (const IService &, const JobHistory *)
virtual ~ServiceHistory ()
virtual const CLIDclID () const
 Retrieve reference to class definition structure.
const PropertyListproperties () const
std::string name () const
 Retreive DataObject name. It is the name when registered in the store.
std::string type () const
const IServiceservice () const
const JobHistoryjobHistory () const

Static Public Member Functions

static const CLIDclassID ()
 Retrieve reference to class definition structure (static access).

Private Attributes

const IServicem_pService
const JobHistorym_jobHistory
std::string m_name
std::string m_type
PropertyList m_properties

Detailed Description

ServiceHistory class definition.

Author:
: Charles Leggett

Definition at line 23 of file ServiceHistory.h.


Member Typedef Documentation

Definition at line 28 of file ServiceHistory.h.


Constructor & Destructor Documentation

ServiceHistory::ServiceHistory (  ) 

Definition at line 27 of file ServiceHistory.cpp.

00028                               :
00029   //  HistoryObj(),
00030   m_pService(0),
00031   m_name("none"),
00032   m_type("none")
00033 {
00034 
}

ServiceHistory::ServiceHistory ( const IService isv,
const JobHistory job 
)

Definition at line 38 of file ServiceHistory.cpp.

00039                                                                         :
00040   //  HistoryObj(),
00041   m_pService(isv),
00042   m_jobHistory(job),
00043   m_name(isv->name())
00044 {
00045 
00046   const Service *svc = dynamic_cast<const Service*>(isv);
00047   m_type = System::typeinfoName(typeid(*svc));
00048   m_properties = svc->getProperties();
00049 
}

ServiceHistory::ServiceHistory ( const IService isv,
const JobHistory job 
)

Definition at line 54 of file ServiceHistory.cpp.

00055                                                                         :
00056   //  HistoryObj(),
00057   m_pService(&isv),
00058   m_jobHistory(job),
00059   m_name(isv.name())
00060 {
00061   
00062   const Service *svc = dynamic_cast<const Service*>(&isv);
00063   m_type = System::typeinfoName(typeid(*svc));
00064   m_properties = svc->getProperties();
00065 
}

ServiceHistory::~ServiceHistory (  )  [virtual]

Definition at line 69 of file ServiceHistory.cpp.

00069                                 {
00070 
00071 }


Member Function Documentation

const CLID & ServiceHistory::classID (  )  [static]

Retrieve reference to class definition structure (static access).

Retrieve Pointer to class definition structure.

Reimplemented from HistoryObj.

Definition at line 75 of file ServiceHistory.cpp.

00075                                     {
00076 
00077   static CLID CLID_ServiceHistory = 187225489;   // from `clid ServiceHistory`
00078   return CLID_ServiceHistory;
00079 
00080 }

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

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from HistoryObj.

Definition at line 38 of file ServiceHistory.h.

00038 { return classID(); }

const JobHistory* ServiceHistory::jobHistory (  )  const [inline]

Definition at line 48 of file ServiceHistory.h.

00048 { return m_jobHistory; }

std::string ServiceHistory::name (  )  const [inline]

Retreive DataObject name. It is the name when registered in the store.

Retrieve DataObject name. It is the name when included in the store.

Reimplemented from DataObject.

Definition at line 44 of file ServiceHistory.h.

00044 { return m_name; }

const PropertyList& ServiceHistory::properties (  )  const [inline]

Definition at line 42 of file ServiceHistory.h.

00042 { return m_properties; }

const IService* ServiceHistory::service (  )  const [inline]

Definition at line 46 of file ServiceHistory.h.

00046 { return m_pService; }

std::string ServiceHistory::type (  )  const [inline]

Definition at line 45 of file ServiceHistory.h.

00045 { return m_type; }


Member Data Documentation

Definition at line 53 of file ServiceHistory.h.

Definition at line 54 of file ServiceHistory.h.

Definition at line 55 of file ServiceHistory.h.

Definition at line 52 of file ServiceHistory.h.

Definition at line 54 of file ServiceHistory.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:31:48 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004