|
Gaudi Framework, version v22r1 |
| Home | Generated: Mon Feb 28 2011 |
#include "GaudiKernel/JobHistory.h"#include "GaudiKernel/System.h"#include "GaudiKernel/Property.h"#include <cstdlib>#include <iostream>
Go to the source code of this file.
Functions | |
| ostream & | operator<< (ostream &lhs, const JobHistory &rhs) |
| ostream& operator<< | ( | ostream & | lhs, |
| const JobHistory & | rhs | ||
| ) |
Definition at line 98 of file JobHistory.cpp.
{
lhs << "Release: " << rhs.release_version() << endl;
lhs << "OS: " << rhs.os() << endl;
lhs << "OS ver: " << rhs.os_version() << endl;
lhs << "Host: " << rhs.hostname() << endl;
lhs << "Machine: " << rhs.machine() << endl;
lhs << "Run dir: " << rhs.dir() << endl;
lhs << "CMTCONFIG: " << rhs.cmtconfig() << endl;
lhs << "Job start time: " << rhs.start_time() << endl << endl;
lhs << "Properties: [" << endl;;
for ( JobHistory::PropertyList::const_iterator
ipprop=rhs.properties().begin();
ipprop!=rhs.properties().end(); ++ipprop ) {
std::string client = ipprop->first;
const Property* prop = ipprop->second;
lhs << client << ": ";
prop->fillStream(lhs);
lhs << endl;
}
lhs << "]" << endl;
vector<string> env = rhs.environment();
for (vector<string>::const_iterator itr=env.begin(); itr != env.end();
++itr) {
lhs << *itr << endl;
}
return lhs;
}