13 #include "GaudiKernel/JobHistory.h"
14 #include "GaudiKernel/System.h"
15 #include "GaudiKernel/Property.h"
58 const std::string& host,
const std::string& dir,
59 const std::string& osver,
const std::string& mach,
60 const std::string& cmtconfig,
62 m_release_version(rel), m_dir(dir), m_cmtconfig(cmtconfig), m_osname(os),
64 m_os_version(osver), m_machine(mach), m_start_time(time) {
78 static const CLID CLID_JobHistory = 247994533;
79 return CLID_JobHistory;
86 m_ppl.emplace_back( client,prop );
95 ost <<
"OS: " <<
os() << endl;
97 ost <<
"Host: " <<
hostname() << endl;
98 ost <<
"Machine: " <<
machine() << endl;
99 ost <<
"Run dir: " <<
dir() << endl;
100 ost <<
"CMTCONFIG: " <<
cmtconfig() << endl;
101 ost <<
"Job start time: " <<
start_time() << endl << endl;
102 ost <<
"Properties: [" << endl;;
104 const std::string& client = ipprop.first;
105 const Property* prop = ipprop.second;
106 ost << client <<
": ";
111 for (
const auto& itr :
environment() ) ost << itr << endl;
std::string os_version() const
GAUDI_API const std::string & osName()
OS name.
struct GAUDI_API vector
Parametrisation class for vector-like implementation.
void dump(std::ostream &, const bool isXML=false, int indent=0) const
time_t start_time() const
JobHistory class definition.
std::vector< std::string > m_environ
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
std::string release_version() const
ostream & operator<<(ostream &lhs, const JobHistory &rhs)
std::string machine() const
std::vector< std::string > environment() const
std::string cmtconfig() const
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
GAUDI_API const std::string & machineType()
Machine type.
void addProperty(const std::string &, const Property *)
const PropertyPairList & propertyPairs() const
std::string m_release_version
Property base class allowing Property* collections to be "homogeneous".
GAUDI_API const std::string & hostName()
Host name.
static const CLID & classID()
unsigned int CLID
Class ID definition.
std::string hostname() const
GAUDI_API const std::string & osVersion()
OS version.