ServiceHistory class definition.
More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/ServiceHistory.h>
ServiceHistory class definition.
- Author
- : Charles Leggett
Definition at line 30 of file ServiceHistory.h.
◆ ServiceHistory() [1/3]
ServiceHistory::ServiceHistory |
( |
| ) |
|
◆ ServiceHistory() [2/3]
Definition at line 22 of file ServiceHistory.cpp.
24
25 const Service* svc = dynamic_cast<const Service*>( isv );
29}
const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const override
get all properties
PropertyList m_properties
const JobHistory * m_jobHistory
const std::string & name() const override
constexpr static const auto FAILURE
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
◆ ServiceHistory() [3/3]
Definition at line 31 of file ServiceHistory.cpp.
33
34 const Service* svc = dynamic_cast<const Service*>( &isv );
35 if ( svc ) {
38 } else {
40 }
41}
◆ classID()
const CLID & ServiceHistory::classID |
( |
| ) |
|
|
static |
Definition at line 43 of file ServiceHistory.cpp.
43 {
44 static const CLID CLID_ServiceHistory = 187225489;
45 return CLID_ServiceHistory;
46}
unsigned int CLID
Class ID definition.
◆ clID()
const CLID & ServiceHistory::clID |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieve reference to class definition structure.
Retrieve Pointer to class definition structure.
Reimplemented from HistoryObj.
Definition at line 38 of file ServiceHistory.h.
static const CLID & classID()
◆ dump()
std::ostream & ServiceHistory::dump |
( |
std::ostream & | ost, |
|
|
const bool | isXML, |
|
|
int | indent ) const |
|
overridevirtual |
Implements HistoryObj.
Definition at line 48 of file ServiceHistory.cpp.
48 {
49
50 if ( !isXML ) {
51
52 ost <<
"Name: " <<
name() << endl;
53 ost <<
"Type: " <<
type() << endl;
54 ost <<
"Version: " <<
version() << endl;
55
56
57 ost << "Properties: [" << endl;
58
60 const PropertyBase& prop = *ipprop;
62 ost << endl;
63 }
64 ost << "]" << endl;
65
66 } else {
67
68 ind += 2;
72
74 const PropertyBase& prop = *ipprop;
75
79 }
80
82 ost << "</COMPONENT>" << endl;
83 }
84 return ost;
85}
std::string documentation() const
property documentation
virtual std::string toString() const =0
value -> string
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
const std::string name() const
property name
virtual void indent(std::ostream &, int) const
static std::string convert_string(const std::string &)
const std::string & type() const override
const PropertyList & properties() const override
const std::string & version() const override
◆ jobHistory()
const JobHistory * ServiceHistory::jobHistory |
( |
| ) |
const |
|
inline |
◆ name()
const std::string & ServiceHistory::name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ properties()
◆ service()
const IService * ServiceHistory::service |
( |
| ) |
const |
|
inline |
◆ type()
const std::string & ServiceHistory::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ version()
const std::string & ServiceHistory::version |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | lhs, |
|
|
const ServiceHistory & | rhs ) |
|
friend |
Definition at line 55 of file ServiceHistory.h.
55{
return rhs.
dump( lhs,
false, 0 ); }
std::ostream & dump(std::ostream &, const bool isXML, int indent) const override
◆ m_jobHistory
const JobHistory* ServiceHistory::m_jobHistory { nullptr } |
|
private |
◆ m_name
std::string ServiceHistory::m_name |
|
private |
◆ m_properties
◆ m_pService
const IService* ServiceHistory::m_pService |
|
private |
◆ m_type
std::string ServiceHistory::m_type |
|
private |
◆ m_version
std::string ServiceHistory::m_version |
|
private |
The documentation for this class was generated from the following files: