The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
AlgToolHistory Class Reference

AlgToolHistory class definition. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/AlgToolHistory.h>

Inheritance diagram for AlgToolHistory:
Collaboration diagram for AlgToolHistory:

Public Member Functions

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

Private Attributes

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

Friends

std::ostream & operator<< (std::ostream &lhs, const AlgToolHistory &rhs)
 

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 31 of file AlgToolHistory.h.

Constructor & Destructor Documentation

◆ AlgToolHistory() [1/2]

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

Definition at line 20 of file AlgToolHistory.cpp.

21 : m_type( alg.type() )
22 , m_version( "UNKNOWN" )
23 , m_name( alg.name() )
24 , m_tool( &alg )
25 , m_properties( alg.getProperties() )
26 , m_jobHistory( job ) {}
PropertyList m_properties
std::string m_type
std::string m_version
const JobHistory * m_jobHistory
const AlgTool * m_tool
std::string m_name

◆ AlgToolHistory() [2/2]

AlgToolHistory::AlgToolHistory ( std::string algVersion,
std::string algName,
std::string algType,
const AlgTool * tool,
const PropertyList & props,
const JobHistory * job )

Definition at line 28 of file AlgToolHistory.cpp.

31 : m_type( std::move( algType ) ) // FIXME type_info???
32 , m_version( std::move( algVersion ) )
33 , m_name( std::move( algName ) )
34 , m_tool( tool )
35 , m_properties( props )
36 , m_jobHistory( job ) {}

Member Function Documentation

◆ algtool_instance()

const AlgTool * AlgToolHistory::algtool_instance ( ) const
inline

Definition at line 72 of file AlgToolHistory.h.

72{ return m_tool; }

◆ algtool_name()

const std::string & AlgToolHistory::algtool_name ( ) const
inline

Definition at line 69 of file AlgToolHistory.h.

69{ return m_name; }

◆ algtool_type()

const std::string & AlgToolHistory::algtool_type ( ) const
inline

Definition at line 63 of file AlgToolHistory.h.

63{ return m_type; }

◆ algtool_version()

const std::string & AlgToolHistory::algtool_version ( ) const
inline

Definition at line 66 of file AlgToolHistory.h.

66{ return m_version; }

◆ classID()

const CLID & AlgToolHistory::classID ( )
static

Definition at line 38 of file AlgToolHistory.cpp.

38 {
39
40 static const CLID CLID_AlgToolHistory = 171959758; // from `clid AlgToolHistory`
41 return CLID_AlgToolHistory;
42}
unsigned int CLID
Class ID definition.
Definition ClassID.h:16

◆ clID()

const CLID & AlgToolHistory::clID ( ) const
inlineoverridevirtual

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from DataObject.

Definition at line 59 of file AlgToolHistory.h.

59{ return classID(); }
static const CLID & classID()

◆ dump()

std::ostream & AlgToolHistory::dump ( std::ostream & ost,
bool isXML,
int indent ) const
overridevirtual

Implements HistoryObj.

Definition at line 46 of file AlgToolHistory.cpp.

46 {
47
48 if ( !isXML ) {
49
50 ost << "Name: " << algtool_name() << endl;
51 ost << "Type: " << algtool_type() << endl;
52 ost << "Version: " << algtool_version() << endl;
53 ost << "Parent: " << algtool_instance()->name() << endl;
54
55 // Properties
56 ost << "Properties: [" << endl;
57
58 for ( const auto& iprop : properties() ) {
59 iprop->fillStream( ost );
60 ost << endl;
61 }
62 ost << "]" << endl;
63
64 } else {
65
66 ind += 2;
67 indent( ost, ind );
68 ost << "<COMPONENT name=\"" << algtool_name() << "\" class=\"" << convert_string( algtool_type() )
69 << "\" version=\"" << convert_string( algtool_version() ) << "\" parent=\""
70 << convert_string( algtool_instance()->name() ) << "\">" << endl;
71
72 for ( const auto& iprop : properties() ) {
73
74 indent( ost, ind + 2 );
75 ost << "<PROPERTY name=\"" << iprop->name() << "\" value=\"" << convert_string( iprop->toString() )
76 << "\" documentation=\"" << convert_string( iprop->documentation() ) << "\">" << endl;
77 }
78
79 indent( ost, ind );
80 ost << "</COMPONENT>" << endl;
81 }
82 return ost;
83}
const std::string & algtool_type() const
const std::string & algtool_name() const
const PropertyList & properties() const override
const std::string & name() const override
const std::string & algtool_version() const
const AlgTool * algtool_instance() const
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition AlgTool.cpp:72
virtual void indent(std::ostream &, int) const
static std::string convert_string(const std::string &)

◆ jobHistory()

const JobHistory * AlgToolHistory::jobHistory ( ) const
inline

Definition at line 78 of file AlgToolHistory.h.

78{ return m_jobHistory; }

◆ name()

const std::string & AlgToolHistory::name ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 82 of file AlgToolHistory.h.

82{ return algtool_name(); }

◆ properties()

const PropertyList & AlgToolHistory::properties ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 75 of file AlgToolHistory.h.

75{ return m_properties; }

◆ type()

const std::string & AlgToolHistory::type ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 83 of file AlgToolHistory.h.

83{ return algtool_type(); }

◆ version()

const std::string & AlgToolHistory::version ( ) const
inlineoverridevirtual

Implements IVersHistoryObj.

Definition at line 84 of file AlgToolHistory.h.

84{ return algtool_version(); }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & lhs,
const AlgToolHistory & rhs )
friend

Definition at line 86 of file AlgToolHistory.h.

86{ return rhs.dump( lhs, false, 0 ); }
std::ostream & dump(std::ostream &, bool isXML, int indent) const override

Member Data Documentation

◆ m_jobHistory

const JobHistory* AlgToolHistory::m_jobHistory
private

Definition at line 50 of file AlgToolHistory.h.

◆ m_name

std::string AlgToolHistory::m_name
private

Definition at line 41 of file AlgToolHistory.h.

◆ m_properties

PropertyList AlgToolHistory::m_properties
private

Definition at line 47 of file AlgToolHistory.h.

◆ m_tool

const AlgTool* AlgToolHistory::m_tool
private

Definition at line 44 of file AlgToolHistory.h.

◆ m_type

std::string AlgToolHistory::m_type
private

Definition at line 35 of file AlgToolHistory.h.

◆ m_version

std::string AlgToolHistory::m_version
private

Definition at line 38 of file AlgToolHistory.h.


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