JobHistory class definition.
More...
#include <GaudiKernel/JobHistory.h>
|
| JobHistory () |
|
| JobHistory (const std::string &rel, const std::string &os, const std::string &host, const std::string &dir, const std::string &osver, const std::string &mach, const std::string &cmtconfig, const time_t &time) |
|
virtual | ~JobHistory () |
|
virtual const CLID & | clID () const |
| Retrieve reference to class definition structure. More...
|
|
void | addProperty (const std::string &, const Property *) |
|
std::string | release_version () const |
|
std::string | os () const |
|
std::string | hostname () const |
|
std::string | os_version () const |
|
std::string | machine () const |
|
std::string | dir () const |
|
std::string | cmtconfig () const |
|
std::vector< std::string > | environment () const |
|
const PropertyList & | properties () const |
|
const PropertyPairList & | propertyPairs () const |
|
time_t | start_time () const |
|
void | dump (std::ostream &, const bool isXML=false, int indent=0) const |
|
const std::string & | name () const |
|
const std::string & | version () const |
|
const std::string & | type () const |
|
| HistoryObj () |
|
virtual | ~HistoryObj () |
|
| 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...
|
|
IRegistry * | registry () const |
| Get pointer to Registry. More...
|
|
LinkManager * | linkMgr () 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...
|
|
virtual | ~IVersHistoryObj () |
|
|
virtual void | indent (std::ostream &, int) const |
|
JobHistory class definition.
- Author
- : Charles Leggett
Definition at line 25 of file JobHistory.h.
JobHistory::JobHistory |
( |
| ) |
|
Definition at line 33 of file JobHistory.cpp.
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
std::vector< std::string > m_environ
GAUDI_API const std::string & osName()
OS name.
std::string m_release_version
GAUDI_API const std::string & hostName()
Host name.
GAUDI_API const std::string & osVersion()
OS version.
GAUDI_API const std::string & machineType()
Machine type.
JobHistory::JobHistory |
( |
const std::string & |
rel, |
|
|
const std::string & |
os, |
|
|
const std::string & |
host, |
|
|
const std::string & |
dir, |
|
|
const std::string & |
osver, |
|
|
const std::string & |
mach, |
|
|
const std::string & |
cmtconfig, |
|
|
const time_t & |
time |
|
) |
| |
Definition at line 59 of file JobHistory.cpp.
std::string cmtconfig() const
std::string m_release_version
JobHistory::~JobHistory |
( |
| ) |
|
|
virtual |
void JobHistory::addProperty |
( |
const std::string & |
client, |
|
|
const Property * |
prop |
|
) |
| |
Definition at line 87 of file JobHistory.cpp.
89 m_ppl.push_back( std::pair<std::string, const Property*>(client,prop) );
const CLID & JobHistory::classID |
( |
| ) |
|
|
static |
Definition at line 79 of file JobHistory.cpp.
81 static CLID CLID_JobHistory = 247994533;
82 return CLID_JobHistory;
unsigned int CLID
Class ID definition.
virtual const CLID& JobHistory::clID |
( |
| ) |
const |
|
inlinevirtual |
Retrieve reference to class definition structure.
Retrieve Pointer to class definition structure.
Reimplemented from HistoryObj.
Definition at line 64 of file JobHistory.h.
static const CLID & classID()
std::string JobHistory::cmtconfig |
( |
| ) |
const |
|
inline |
std::string JobHistory::dir |
( |
| ) |
const |
|
inline |
void JobHistory::dump |
( |
std::ostream & |
ost, |
|
|
const bool |
isXML = false , |
|
|
int |
indent = 0 |
|
) |
| const |
|
virtual |
Implements HistoryObj.
Definition at line 95 of file JobHistory.cpp.
99 ost <<
"OS: " <<
os() << endl;
101 ost <<
"Host: " <<
hostname() << endl;
102 ost <<
"Machine: " <<
machine() << endl;
103 ost <<
"Run dir: " <<
dir() << endl;
104 ost <<
"CMTCONFIG: " <<
cmtconfig() << endl;
105 ost <<
"Job start time: " <<
start_time() << endl << endl;
106 ost <<
"Properties: [" << endl;;
107 for ( JobHistory::PropertyPairList::const_iterator
110 std::string client = ipprop->first;
111 const Property* prop = ipprop->second;
112 ost << client <<
": ";
118 for (vector<string>::const_iterator itr=env.begin(); itr != env.end();
std::string os_version() const
time_t start_time() const
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
std::string release_version() const
std::string machine() const
std::vector< std::string > environment() const
std::string cmtconfig() const
const PropertyPairList & propertyPairs() const
Property base class allowing Property* collections to be "homogeneous".
std::string hostname() const
std::vector<std::string> JobHistory::environment |
( |
| ) |
const |
|
inline |
Definition at line 78 of file JobHistory.h.
std::vector< std::string > m_environ
std::string JobHistory::hostname |
( |
| ) |
const |
|
inline |
std::string JobHistory::machine |
( |
| ) |
const |
|
inline |
const std::string& JobHistory::name |
( |
| ) |
const |
|
inlinevirtual |
std::string JobHistory::os |
( |
| ) |
const |
|
inline |
std::string JobHistory::os_version |
( |
| ) |
const |
|
inline |
std::string JobHistory::release_version |
( |
| ) |
const |
|
inline |
Definition at line 71 of file JobHistory.h.
std::string m_release_version
time_t JobHistory::start_time |
( |
| ) |
const |
|
inline |
const std::string& JobHistory::type |
( |
| ) |
const |
|
inlinevirtual |
const std::string& JobHistory::version |
( |
| ) |
const |
|
inlinevirtual |
std::string JobHistory::m_cmtconfig |
|
private |
std::vector<std::string> JobHistory::m_CVSid |
|
private |
std::string JobHistory::m_dir |
|
private |
std::vector<std::string> JobHistory::m_environ |
|
private |
std::string JobHistory::m_hostname |
|
private |
std::string JobHistory::m_machine |
|
private |
std::string JobHistory::m_os_version |
|
private |
std::string JobHistory::m_osname |
|
private |
std::string JobHistory::m_release_version |
|
private |
time_t JobHistory::m_start_time |
|
private |
The documentation for this class was generated from the following files: