Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
AlgToolHistory Class Reference

AlgToolHistory class definition. More...

#include <AlgToolHistory.h>

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

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.
 
const std::stringalgtool_type () const
 
const std::stringalgtool_version () const
 
const std::stringalgtool_name () const
 
const AlgToolalgtool_instance () const
 
const PropertyListproperties () const
 
void dump (std::ostream &, const bool isXML=false, int indent=0) const
 
const std::stringname () const
 
const std::stringtype () const
 
const std::stringversion () const
 
- Public Member Functions inherited from HistoryObj
 HistoryObj ()
 
virtual ~HistoryObj ()
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor.
 
 DataObject (const DataObject &)
 Copy Constructor.
 
virtual ~DataObject ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
const std::stringname () 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 () const
 Retrieve Link manager.
 
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::ostreamfillStream (std::ostream &s) const
 Fill the output stream (ASCII)
 
- 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)
 

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
 
- Friends inherited from DataObject

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.

:
m_type(alg.type()),
m_version("UNKNOWN"),
m_name(alg.name()),
m_tool( &alg ),
{
}
AlgToolHistory::AlgToolHistory ( const std::string algVersion,
const std::string algName,
const std::string algType,
const AlgTool tool,
const PropertyList props,
const JobHistory job 
)
virtual AlgToolHistory::~AlgToolHistory ( )
inlinevirtual

Definition at line 58 of file AlgToolHistory.h.

{};

Member Function Documentation

const AlgTool* AlgToolHistory::algtool_instance ( ) const
inline

Definition at line 74 of file AlgToolHistory.h.

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

Definition at line 71 of file AlgToolHistory.h.

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

Definition at line 65 of file AlgToolHistory.h.

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

Definition at line 68 of file AlgToolHistory.h.

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

Definition at line 52 of file AlgToolHistory.cpp.

{
static CLID CLID_AlgToolHistory = 171959758; // from `clid AlgToolHistory`
return CLID_AlgToolHistory;
}
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.

{ return 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.

{
if (!isXML) {
ost << "Name: " << algtool_name() << endl;
ost << "Type: " << algtool_type() << endl;
ost << "Version: " << algtool_version() << endl;
ost << "Parent: " << algtool_instance()->name() << endl;
//Properties
ost << "Properties: [" << endl;
ipprop=properties().begin();
ipprop!=properties().end(); ++ipprop ) {
const Property& prop = **ipprop;
prop.fillStream(ost);
ost << endl;
}
ost << "]" << endl;
} else {
ind += 2;
indent(ost,ind);
ost << "<COMPONENT name=\"" << algtool_name()
<< "\" class=\"" << convert_string(algtool_type())
<< "\" version=\"" << convert_string(algtool_version())
<< "\" parent=\"" << convert_string(algtool_instance()->name())
<< "\">" << endl;
ipprop=properties().begin();
ipprop!=properties().end(); ++ipprop ) {
const Property& prop = **ipprop;
indent(ost,ind+2);
ost << "<PROPERTY name=\"" << prop.name()
<< "\" value=\"" << convert_string(prop.toString())
<< "\" documentation=\"" << convert_string(prop.documentation())
<< "\">" << endl;
}
indent(ost,ind);
ost << "</COMPONENT>" << endl;
}
}
const std::string& AlgToolHistory::name ( ) const
inlinevirtual

Implements IVersHistoryObj.

Definition at line 81 of file AlgToolHistory.h.

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

Implements IVersHistoryObj.

Definition at line 77 of file AlgToolHistory.h.

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

Implements IVersHistoryObj.

Definition at line 82 of file AlgToolHistory.h.

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

Implements IVersHistoryObj.

Definition at line 83 of file AlgToolHistory.h.

{ return algtool_version(); }

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:

Generated at Wed Jan 30 2013 17:13:44 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004