39 if ( ( rel =
System::getEnv(
"ATLAS_BASE_RELEASE" ) ) !=
"UNKNOWN" ) {
41 }
else if ( ( rel =
System::getEnv(
"GAUDIROOT" ) ) !=
"UNKNOWN" ) {
60 : m_release_version( rel )
62 , m_cmtconfig( cmtconfig )
65 , m_os_version( osver )
67 , m_start_time(
time ) {}
77 static const CLID CLID_JobHistory = 247994533;
78 return CLID_JobHistory;
90 ost <<
"OS: " <<
os() << endl;
92 ost <<
"Host: " <<
hostname() << endl;
93 ost <<
"Machine: " <<
machine() << endl;
94 ost <<
"Run dir: " <<
dir() << endl;
95 ost <<
"CMTCONFIG: " <<
cmtconfig() << endl;
96 ost <<
"Job start time: " <<
start_time() << endl << endl;
97 ost <<
"Properties: [" << endl;
102 ost << client <<
": ";
107 for (
const auto& itr :
environment() ) ost << itr << endl;
119 rhs.
dump( lhs,
false );
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
struct GAUDI_API vector
Parametrisation class for vector-like implementation.
std::string machine() const
std::vector< std::string > environment() const
JobHistory class definition.
time_t start_time() const
std::vector< std::string > m_environ
void addProperty(const std::string &, const Gaudi::Details::PropertyBase *)
std::string hostname() const
std::string cmtconfig() const
ostream & operator<<(ostream &lhs, const JobHistory &rhs)
void dump(std::ostream &, const bool isXML=false, int indent=0) const override
GAUDI_API const std::string & osName()
OS name.
std::string os_version() const
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
unsigned int CLID
Class ID definition.
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
std::string m_release_version
GAUDI_API const std::string & hostName()
Host name.
const PropertyPairList & propertyPairs() const
GAUDI_API const std::string & osVersion()
OS version.
static const CLID & classID()
GAUDI_API const std::string & machineType()
Machine type.
std::string release_version() const
T emplace_back(T... args)