|
Gaudi Framework, version v22r2 |
| Home | Generated: Tue May 10 2011 |
#include "GaudiKernel/HistoryObj.h"#include <iosfwd>#include <string>#include <typeinfo>#include <vector>

Go to the source code of this file.
Classes | |
| class | AlgorithmHistory |
| AlgorithmHistory class definition. More... | |
Functions | |
| GAUDI_API std::ostream & | operator<< (std::ostream &lhs, const AlgorithmHistory &rhs) |
| GAUDI_API std::ostream& operator<< | ( | std::ostream & | lhs, |
| const AlgorithmHistory & | rhs | ||
| ) |
Definition at line 89 of file AlgorithmHistory.cpp.
{
lhs << "Type: " << rhs.algorithm_type() << endl;
lhs << "Name: " << rhs.algorithm_name() << endl;
lhs << "Version: " << rhs.algorithm_version() << endl;
// Properties.
lhs << "Properties: [" << endl;;
for ( AlgorithmHistory::PropertyList::const_iterator
ipprop=rhs.properties().begin();
ipprop!=rhs.properties().end(); ++ipprop ) {
const Property& prop = **ipprop;
prop.fillStream(lhs);
lhs << endl;
// lhs << " " << prop.type() << " " << prop.name() << endl;
// << " == "
// << prop.fillStream(lhs) << endl;
}
lhs << "]" << endl;
// Subalgorithms.
if ( rhs.subalgorithm_histories().size() == 0 ) {
lhs << "No subalgorithms.";
} else {
lhs << "Subalgorithms: {" << endl;
for ( AlgorithmHistory::HistoryList::const_iterator
iphist=rhs.subalgorithm_histories().begin();
iphist!=rhs.subalgorithm_histories().end(); ++iphist ) {
if ( iphist==rhs.subalgorithm_histories().begin() ) {
lhs << "----------" << endl;
}
lhs << **iphist << endl;
lhs << "----------" << endl;
}
lhs << "}";
}
return lhs;
}