| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Member Functions | Static Public Member Functions | Protected Member Functions

# HistoryObj Class Reference

Base class for History Objects. More...

`#include <GaudiKernel/HistoryObj.h>`

Inheritance diagram for HistoryObj:
[legend]
Collaboration diagram for HistoryObj:
[legend]

List of all members.

## Public Member Functions
| HistoryObj ()
virtual | ~HistoryObj ()
virtual const CLID & | clID () const
| Retrieve reference to class definition structure.
virtual void | dump (std::ostream &, const bool isXML=false, int indent=0) const =0
## Static Public Member Functions
static const CLID & | classID ()
| Retrieve reference to class definition structure (static access)
static std::string | convert_string (const std::string &)
## Protected Member Functions
virtual void | indent (std::ostream &, int) const

## Detailed Description

Base class for History Objects.

Author:
  Charles Leggett

Date:
  Jul 13 2004

Definition at line 24 of file HistoryObj.h.

## Constructor & Destructor Documentation

HistoryObj::HistoryObj | ( | ) |

Definition at line 21 of file HistoryObj.cpp.

    {

    }

HistoryObj::~HistoryObj | ( | ) | `[virtual]`

Definition at line 22 of file VirtualDestructors.cpp.

    {}

## Member Function Documentation

const CLID & HistoryObj::classID | ( | ) | `[static]`

Retrieve reference to class definition structure (static access)

Retrieve Pointer to class definition structure.

Reimplemented from DataObject.

Reimplemented in AlgorithmHistory, AlgToolHistory, DataHistory, JobHistory, and ServiceHistory.

Definition at line 62 of file HistoryObj.cpp.

                        {

      static CLID CLID_HistoryObj = 86452397;
      return CLID_HistoryObj;

    }

virtual const CLID& HistoryObj::clID | ( | ) | const`[inline, virtual]`

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from DataObject.

Reimplemented in AlgorithmHistory, AlgToolHistory, DataHistory, JobHistory, and ServiceHistory.

Definition at line 29 of file HistoryObj.h.

    { return classID(); }

std::string HistoryObj::convert_string | ( | const std::string & | input_string ) | `[static]`

Definition at line 29 of file HistoryObj.cpp.

                                                           {

      //Conversion of special characteres into xml language

      std::string::const_iterator itr_string;
      std::string modified_string;

      for(itr_string=input_string.begin(); itr_string!=input_string.end(); itr_string++) {
        if (*itr_string == '&') modified_string.append("&amp;");
        else if (*itr_string == '<') modified_string.append("&lt;");
        else if (*itr_string == '>') modified_string.append("&gt;");
        else if (*itr_string == '"') modified_string.append("&quot;");
        else if (*itr_string == '\'') modified_string.append("&apos;");
        else if (*itr_string == '\"') modified_string.append("&quot;");
        else modified_string+=*itr_string;
      }

      return modified_string;
    }

virtual void HistoryObj::dump | ( | std::ostream & | ,
|  | const bool | isXML = `false`,
|  | int | indent = `0`
| ) |  | const`[pure virtual]`

Implemented in AlgorithmHistory, AlgToolHistory, DataHistory, JobHistory, and ServiceHistory.

void HistoryObj::indent | ( | std::ostream & | ost,
|  | int | i
| ) |  | const`[protected, virtual]`

Definition at line 52 of file HistoryObj.cpp.

                                                   {
      while (i > 0) {
        ost << " ";
        i--;
      }
    }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiKernel/GaudiKernel/HistoryObj.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiKernel/src/Lib/HistoryObj.cpp
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiKernel/src/Lib/VirtualDestructors.cpp

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