| The Gaudi Framework v32r1 (f65d50dc)

HistoryObj.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_HISTORYOBJ_H
2 #define GAUDIKERNEL_HISTORYOBJ_H
3
4 #include "GaudiKernel/ClassID.h"
5 #include "GaudiKernel/DataObject.h"
6
7 #include <ostream>
8 #include <string>
9
10 class IVersHistoryObj;
11
21 class GAUDI_API HistoryObj : public DataObject {
22 public:
23 HistoryObj() = default;
24 virtual ~HistoryObj() = default;
25
26 const CLID& clID() const override { return classID(); }
27 static const CLID& classID();
28 static std::string convert_string( const std::string& );
29
30 virtual void dump( std::ostream&, const bool isXML = false, int indent = 0 ) const = 0;
31
32 protected:
33 virtual void indent( std::ostream&, int ) const;
34 };
35
36 // Output stream.
37 GAUDI_API std::ostream& operator<<( std::ostream& lhs, const HistoryObj& rhs );
38
39 #endif
ClassID.h
operator<<
GAUDI_API std::ostream & operator<<(std::ostream &lhs, const HistoryObj &rhs)
Definition: HistoryObj.cpp:65
DataObject::classID
static const CLID & classID()
Retrieve reference to class definition structure (static access)
Definition: DataObject.cpp:59
HistoryObj
Base class for History Objects.
Definition: HistoryObj.h:21
HistoryObj::clID
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition: HistoryObj.h:26
std::string
STL class.
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
IVersHistoryObj
Interface for Versioned History Objects.
Definition: IVersHistoryObj.h:18
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
std::ostream
STL class.
DataObject.h