| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Functions

# AlgorithmHistory.cpp File Reference

`#include "GaudiKernel/AlgorithmHistory.h"`
`#include "GaudiKernel/JobHistory.h"`
`#include "GaudiKernel/Algorithm.h"`
`#include <iostream>`
`#include <assert.h>`
Include dependency graph for AlgorithmHistory.cpp:

Go to the source code of this file.

## Functions
ostream & | operator<< (ostream &lhs, const AlgorithmHistory &rhs)

## Function Documentation

ostream& operator<< | ( | 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;
    }

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines