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