All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AlgToolHistory Class Reference

AlgToolHistory class definition. More...

#include <GaudiKernel/AlgToolHistory.h>

Inheritance diagram for AlgToolHistory:
Collaboration diagram for AlgToolHistory:

Public Member Functions

 AlgToolHistory (const AlgTool &alg, const JobHistory *job)
 
 AlgToolHistory (const std::string &algVersion, const std::string &algName, const std::string &algType, const AlgTool *tool, const PropertyList &props, const JobHistory *job)
 
virtual ~AlgToolHistory ()
 
virtual const CLIDclID () const
 Retrieve reference to class definition structure. More...
 
const std::string & algtool_type () const
 
const std::string & algtool_version () const
 
const std::string & algtool_name () const
 
const AlgToolalgtool_instance () const
 
const PropertyListproperties () const
 
const JobHistoryjobHistory () const
 
void dump (std::ostream &, const bool isXML=false, int indent=0) const
 
const std::string & name () const
 
const std::string & type () const
 
const std::string & version () const
 
- Public Member Functions inherited from HistoryObj
 HistoryObj ()
 
virtual ~HistoryObj ()
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &)
 Copy Constructor. More...
 
virtual ~DataObject ()
 Standard Destructor. More...
 
virtual unsigned long addRef ()
 Add reference to object. More...
 
virtual unsigned long release ()
 release reference to object More...
 
const std::string & name () const
 Retreive DataObject name. It is the name when registered in the store. More...
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback. More...
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry. More...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr () const
 Retrieve Link manager. More...
 
unsigned char version () const
 Retrieve version number of this object representation. More...
 
void setVersion (unsigned char vsn)
 Set version number of this object representation. More...
 
unsigned long refCount () const
 Return the refcount. More...
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the output stream (ASCII) More...
 
- Public Member Functions inherited from IVersHistoryObj
virtual ~IVersHistoryObj ()
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from HistoryObj
static const CLIDclassID ()
 
static std::string convert_string (const std::string &)
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Private Attributes

std::string m_type
 
std::string m_version
 
std::string m_name
 
const AlgToolm_tool
 
PropertyList m_properties
 
const JobHistorym_jobHistory
 

Additional Inherited Members

- Public Types inherited from IVersHistoryObj
typedef std::vector< Property * > PropertyList
 
- Protected Member Functions inherited from HistoryObj
virtual void indent (std::ostream &, int) const
 

Detailed Description

AlgToolHistory class definition.

Author
: Charles Leggett

Definition at line 24 of file AlgToolHistory.h.

Constructor & Destructor Documentation

AlgToolHistory::AlgToolHistory ( const AlgTool alg,
const JobHistory job 
)

Definition at line 23 of file AlgToolHistory.cpp.

24 :
25  m_type(alg.type()),
26  m_version("UNKNOWN"),
27  m_name(alg.name()),
28  m_tool( &alg ),
30  m_jobHistory(job)
31 {
32 }
std::string m_version
const JobHistory * m_jobHistory
virtual const std::string & type() const
Retrieve type (concrete class) of the sub-algtool.
Definition: AlgTool.cpp:58
std::string m_name
PropertyList m_properties
std::string m_type
const AlgTool * m_tool
virtual const std::vector< Property * > & getProperties() const
Get list of properties.
Definition: AlgTool.cpp:140
virtual const std::string & name() const
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:51
AlgToolHistory::AlgToolHistory ( const std::string &  algVersion,
const std::string &  algName,
const std::string &  algType,
const AlgTool tool,
const PropertyList props,
const JobHistory job 
)

Definition at line 36 of file AlgToolHistory.cpp.

41  :
42  m_type(algType), // FIXME type_info???
43  m_version(algVersion),
44  m_name(algName),
45  m_tool(tool),
46  m_properties(props),
47  m_jobHistory(job)
48 {}
std::string m_version
const JobHistory * m_jobHistory
std::string m_name
PropertyList m_properties
std::string m_type
const AlgTool * m_tool
virtual AlgToolHistory::~AlgToolHistory ( )
inlinevirtual

Definition at line 58 of file AlgToolHistory.h.

58 {};

Member Function Documentation

const AlgTool* AlgToolHistory::algtool_instance ( ) const
inline

Definition at line 74 of file AlgToolHistory.h.

74 { return m_tool; }
const AlgTool * m_tool
const std::string& AlgToolHistory::algtool_name ( ) const
inline

Definition at line 71 of file AlgToolHistory.h.

71 { return m_name; }
std::string m_name
const std::string& AlgToolHistory::algtool_type ( ) const
inline

Definition at line 65 of file AlgToolHistory.h.

65 { return m_type; }
std::string m_type
const std::string& AlgToolHistory::algtool_version ( ) const
inline

Definition at line 68 of file AlgToolHistory.h.

68 { return m_version; }
std::string m_version
const CLID & AlgToolHistory::classID ( )
static

Definition at line 52 of file AlgToolHistory.cpp.

52  {
53 
54  static CLID CLID_AlgToolHistory = 171959758; // from `clid AlgToolHistory`
55  return CLID_AlgToolHistory;
56 
57 }
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
virtual const CLID& AlgToolHistory::clID ( ) const
inlinevirtual

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from HistoryObj.

Definition at line 61 of file AlgToolHistory.h.

61 { return classID(); }
static const CLID & classID()
void AlgToolHistory::dump ( std::ostream &  ost,
const bool  isXML = false,
int  indent = 0 
) const
virtual

Implements HistoryObj.

Definition at line 62 of file AlgToolHistory.cpp.

62  {
63 
64  if (!isXML) {
65 
66  ost << "Name: " << algtool_name() << endl;
67  ost << "Type: " << algtool_type() << endl;
68  ost << "Version: " << algtool_version() << endl;
69  ost << "Parent: " << algtool_instance()->name() << endl;
70 
71  //Properties
72  ost << "Properties: [" << endl;
73 
74  for ( AlgToolHistory::PropertyList::const_iterator
75  ipprop=properties().begin();
76  ipprop!=properties().end(); ++ipprop ) {
77  const Property& prop = **ipprop;
78  prop.fillStream(ost);
79  ost << endl;
80  }
81  ost << "]" << endl;
82 
83  } else {
84 
85  ind += 2;
86  indent(ost,ind);
87  ost << "<COMPONENT name=\"" << algtool_name()
88  << "\" class=\"" << convert_string(algtool_type())
89  << "\" version=\"" << convert_string(algtool_version())
90  << "\" parent=\"" << convert_string(algtool_instance()->name())
91  << "\">" << endl;
92 
93  for ( AlgToolHistory::PropertyList::const_iterator
94  ipprop=properties().begin();
95  ipprop!=properties().end(); ++ipprop ) {
96  const Property& prop = **ipprop;
97 
98  indent(ost,ind+2);
99  ost << "<PROPERTY name=\"" << prop.name()
100  << "\" value=\"" << convert_string(prop.toString())
101  << "\" documentation=\"" << convert_string(prop.documentation())
102  << "\">" << endl;
103  }
104 
105  indent(ost,ind);
106  ost << "</COMPONENT>" << endl;
107 
108  }
109 
110 }
virtual std::string toString() const =0
value -> string
const std::string & name() const
property name
Definition: Property.h:47
const AlgTool * algtool_instance() const
const std::string & documentation() const
property documentation
Definition: Property.h:49
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
Definition: Property.cpp:182
const std::string & name() const
virtual void indent(std::ostream &, int) const
Definition: HistoryObj.cpp:52
const PropertyList & properties() const
const std::string & algtool_type() const
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:43
static std::string convert_string(const std::string &)
Definition: HistoryObj.cpp:29
const std::string & algtool_version() const
virtual const std::string & name() const
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:51
const std::string & algtool_name() const
const JobHistory* AlgToolHistory::jobHistory ( ) const
inline

Definition at line 80 of file AlgToolHistory.h.

80 { return m_jobHistory; }
const JobHistory * m_jobHistory
const std::string& AlgToolHistory::name ( ) const
inlinevirtual

Implements IVersHistoryObj.

Definition at line 84 of file AlgToolHistory.h.

84 { return algtool_name(); }
const std::string & algtool_name() const
const PropertyList& AlgToolHistory::properties ( ) const
inlinevirtual

Implements IVersHistoryObj.

Definition at line 77 of file AlgToolHistory.h.

77 { return m_properties; }
PropertyList m_properties
const std::string& AlgToolHistory::type ( ) const
inlinevirtual

Implements IVersHistoryObj.

Definition at line 85 of file AlgToolHistory.h.

85 { return algtool_type(); }
const std::string & algtool_type() const
const std::string& AlgToolHistory::version ( ) const
inlinevirtual

Implements IVersHistoryObj.

Definition at line 86 of file AlgToolHistory.h.

86 { return algtool_version(); }
const std::string & algtool_version() const

Member Data Documentation

const JobHistory* AlgToolHistory::m_jobHistory
private

Definition at line 44 of file AlgToolHistory.h.

std::string AlgToolHistory::m_name
private

Definition at line 35 of file AlgToolHistory.h.

PropertyList AlgToolHistory::m_properties
private

Definition at line 41 of file AlgToolHistory.h.

const AlgTool* AlgToolHistory::m_tool
private

Definition at line 38 of file AlgToolHistory.h.

std::string AlgToolHistory::m_type
private

Definition at line 29 of file AlgToolHistory.h.

std::string AlgToolHistory::m_version
private

Definition at line 32 of file AlgToolHistory.h.


The documentation for this class was generated from the following files: