The Gaudi Framework  v30r3 (a5ef0a68)
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)
 
const CLIDclID () const override
 Retrieve reference to class definition structure. More...
 
const std::stringalgtool_type () const
 
const std::stringalgtool_version () const
 
const std::stringalgtool_name () const
 
const AlgToolalgtool_instance () const
 
const PropertyListproperties () const override
 
const JobHistoryjobHistory () const
 
void dump (std::ostream &, const bool isXML=false, int indent=0) const override
 
const std::stringname () const override
 
const std::stringtype () const override
 
const std::stringversion () const override
 
- Public Member Functions inherited from HistoryObj
 HistoryObj ()=default
 
virtual ~HistoryObj ()=default
 
const CLIDclID () const override
 Retrieve reference to class definition structure. More...
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &rhs)
 Copy Constructor. More...
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator. More...
 
 DataObject (DataObject &&rhs)
 Move Constructor. More...
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator. 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::stringname () 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::ostreamfillStream (std::ostream &s) const
 Fill the output stream (ASCII) More...
 
- Public Member Functions inherited from IVersHistoryObj
virtual ~IVersHistoryObj ()=default
 

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< Gaudi::Details::PropertyBase * > 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 22 of file AlgToolHistory.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file AlgToolHistory.cpp.

22  : m_type( alg.type() )
23  , m_version( "UNKNOWN" )
24  , m_name( alg.name() )
25  , m_tool( &alg )
26  , m_properties( alg.getProperties() )
27  , m_jobHistory( job )
28 {
29 }
std::string m_version
const JobHistory * m_jobHistory
std::string m_name
PropertyList m_properties
const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const override
get all properties
std::string m_type
const AlgTool * m_tool
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:62
const std::string & type() const override
Retrieve type (concrete class) of the sub-algtool.
Definition: AlgTool.cpp:69
AlgToolHistory::AlgToolHistory ( const std::string algVersion,
const std::string algName,
const std::string algType,
const AlgTool tool,
const PropertyList props,
const JobHistory job 
)

Member Function Documentation

const AlgTool* AlgToolHistory::algtool_instance ( ) const
inline

Definition at line 64 of file AlgToolHistory.h.

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

Definition at line 61 of file AlgToolHistory.h.

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

Definition at line 55 of file AlgToolHistory.h.

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

Definition at line 58 of file AlgToolHistory.h.

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

Definition at line 48 of file AlgToolHistory.cpp.

49 {
50 
51  static const CLID CLID_AlgToolHistory = 171959758; // from `clid AlgToolHistory`
52  return CLID_AlgToolHistory;
53 }
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
const CLID& AlgToolHistory::clID ( ) const
inlineoverridevirtual

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from DataObject.

Definition at line 51 of file AlgToolHistory.h.

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

Implements HistoryObj.

Definition at line 57 of file AlgToolHistory.cpp.

58 {
59 
60  if ( !isXML ) {
61 
62  ost << "Name: " << algtool_name() << endl;
63  ost << "Type: " << algtool_type() << endl;
64  ost << "Version: " << algtool_version() << endl;
65  ost << "Parent: " << algtool_instance()->name() << endl;
66 
67  // Properties
68  ost << "Properties: [" << endl;
69 
70  for ( const auto& iprop : properties() ) {
71  iprop->fillStream( ost );
72  ost << endl;
73  }
74  ost << "]" << endl;
75 
76  } else {
77 
78  ind += 2;
79  indent( ost, ind );
80  ost << "<COMPONENT name=\"" << algtool_name() << "\" class=\"" << convert_string( algtool_type() )
81  << "\" version=\"" << convert_string( algtool_version() ) << "\" parent=\""
82  << convert_string( algtool_instance()->name() ) << "\">" << endl;
83 
84  for ( const auto& iprop : properties() ) {
85 
86  indent( ost, ind + 2 );
87  ost << "<PROPERTY name=\"" << iprop->name() << "\" value=\"" << convert_string( iprop->toString() )
88  << "\" documentation=\"" << convert_string( iprop->documentation() ) << "\">" << endl;
89  }
90 
91  indent( ost, ind );
92  ost << "</COMPONENT>" << endl;
93  }
94 }
const AlgTool * algtool_instance() const
T endl(T...args)
const PropertyList & properties() const override
virtual void indent(std::ostream &, int) const
Definition: HistoryObj.cpp:49
const std::string & algtool_type() const
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:62
static std::string convert_string(const std::string &)
Definition: HistoryObj.cpp:20
const std::string & name() const override
const std::string & algtool_version() const
const std::string & algtool_name() const
const JobHistory* AlgToolHistory::jobHistory ( ) const
inline

Definition at line 70 of file AlgToolHistory.h.

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

Implements IVersHistoryObj.

Definition at line 74 of file AlgToolHistory.h.

74 { return algtool_name(); }
const std::string & algtool_name() const
const PropertyList& AlgToolHistory::properties ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 67 of file AlgToolHistory.h.

67 { return m_properties; }
PropertyList m_properties
const std::string& AlgToolHistory::type ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 75 of file AlgToolHistory.h.

75 { return algtool_type(); }
const std::string & algtool_type() const
const std::string& AlgToolHistory::version ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 76 of file AlgToolHistory.h.

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

Member Data Documentation

const JobHistory* AlgToolHistory::m_jobHistory
private

Definition at line 42 of file AlgToolHistory.h.

std::string AlgToolHistory::m_name
private

Definition at line 33 of file AlgToolHistory.h.

PropertyList AlgToolHistory::m_properties
private

Definition at line 39 of file AlgToolHistory.h.

const AlgTool* AlgToolHistory::m_tool
private

Definition at line 36 of file AlgToolHistory.h.

std::string AlgToolHistory::m_type
private

Definition at line 27 of file AlgToolHistory.h.

std::string AlgToolHistory::m_version
private

Definition at line 30 of file AlgToolHistory.h.


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