The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
HistoryObj Class Referenceabstract

Base class for History Objects. More...

#include <GaudiKernel/HistoryObj.h>

Inheritance diagram for HistoryObj:
Collaboration diagram for HistoryObj:

Public Member Functions

virtual ~HistoryObj ()=default
 
const CLIDclID () const override
 Retrieve reference to class definition structure.
 
virtual std::ostream & dump (std::ostream &, bool isXML=false, int indent=0) const =0
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor.
 
 DataObject (const DataObject &rhs)
 Copy Constructor.
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator.
 
 DataObject (DataObject &&rhs)
 Move Constructor.
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator.
 
virtual ~DataObject ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
const std::string & name () const
 Retreive DataObject name. It is the name when registered in the store.
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback.
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry.
 
IRegistryregistry () const
 Get pointer to Registry.
 
LinkManagerlinkMgr ()
 Retrieve Link manager.
 
const LinkManagerlinkMgr () const
 
unsigned char version () const
 Retrieve version number of this object representation.
 
void setVersion (unsigned char vsn)
 Set version number of this object representation.
 
unsigned long refCount () const
 Return the refcount.
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the output stream (ASCII)
 

Static Public Member Functions

static const CLIDclassID ()
 
static std::string convert_string (const std::string &)
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access)
 

Protected Member Functions

virtual void indent (std::ostream &, int) const
 

Friends

std::ostream & operator<< (std::ostream &lhs, const HistoryObj &rhs)
 

Detailed Description

Base class for History Objects.

Author
Charles Leggett
Date
Jul 13 2004

Definition at line 30 of file HistoryObj.h.

Constructor & Destructor Documentation

◆ ~HistoryObj()

virtual HistoryObj::~HistoryObj ( )
virtualdefault

Member Function Documentation

◆ classID()

const CLID & HistoryObj::classID ( )
static

Definition at line 44 of file HistoryObj.cpp.

44 {
45 static const CLID CLID_HistoryObj = 86452397;
46 return CLID_HistoryObj;
47}
unsigned int CLID
Class ID definition.
Definition ClassID.h:16

◆ clID()

const CLID & HistoryObj::clID ( ) const
inlineoverridevirtual

Retrieve reference to class definition structure.

Retrieve Pointer to class definition structure.

Reimplemented from DataObject.

Reimplemented in JobHistory, and ServiceHistory.

Definition at line 34 of file HistoryObj.h.

34{ return classID(); }
static const CLID & classID()

◆ convert_string()

std::string HistoryObj::convert_string ( const std::string & input_string)
static

Definition at line 14 of file HistoryObj.cpp.

14 {
15 // Conversion of special characteres into xml language
16
17 std::string modified_string;
18
19 for ( const auto& itr : input_string ) {
20 if ( itr == '&' )
21 modified_string.append( "&amp;" );
22 else if ( itr == '<' )
23 modified_string.append( "&lt;" );
24 else if ( itr == '>' )
25 modified_string.append( "&gt;" );
26 else if ( itr == '"' )
27 modified_string.append( "&quot;" );
28 else if ( itr == '\'' )
29 modified_string.append( "&apos;" );
30 else
31 modified_string += itr;
32 }
33
34 return modified_string;
35}

◆ dump()

virtual std::ostream & HistoryObj::dump ( std::ostream & ,
bool isXML = false,
int indent = 0 ) const
pure virtual

◆ indent()

void HistoryObj::indent ( std::ostream & ost,
int i ) const
protectedvirtual

Definition at line 37 of file HistoryObj.cpp.

37 {
38 while ( i > 0 ) {
39 ost << " ";
40 --i;
41 }
42}

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & lhs,
const HistoryObj & rhs )
friend

Definition at line 41 of file HistoryObj.h.

41{ return rhs.dump( lhs, false, 0 ); }
virtual std::ostream & dump(std::ostream &, bool isXML=false, int indent=0) const =0

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