60 const std::string& host,
const std::string& dir,
61 const std::string& osver,
const std::string& mach,
62 const std::string& cmtconfig,
64 m_release_version(rel), m_dir(dir), m_cmtconfig(cmtconfig), m_osname(os),
66 m_os_version(osver), m_machine(mach), m_start_time(time) {
81 static CLID CLID_JobHistory = 247994533;
82 return CLID_JobHistory;
89 m_ppl.push_back( std::pair<std::string, const Property*>(client,prop) );
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();
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set)
std::string os_version() const
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.
virtual std::ostream & fillStream(std::ostream &) const
the printout of the property value
std::vector< std::string > m_environ
std::string release_version() const
ostream & operator<<(ostream &lhs, const JobHistory &rhs)
std::string machine() const
GAUDI_API const std::string & osName()
OS name.
std::vector< std::string > environment() const
std::string cmtconfig() const
unsigned int CLID
Class ID definition.
void addProperty(const std::string &, const Property *)
const PropertyPairList & propertyPairs() const
std::string m_release_version
GAUDI_API const std::string & hostName()
Host name.
Property base class allowing Property* collections to be "homogeneous".
GAUDI_API const std::string & osVersion()
OS version.
static const CLID & classID()
GAUDI_API const std::string & machineType()
Machine type.
std::string hostname() const