The Gaudi Framework  v33r0 (d5ea422b)
HistoryObj.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_HISTORYOBJ_H
12 #define GAUDIKERNEL_HISTORYOBJ_H
13 
14 #include "GaudiKernel/ClassID.h"
15 #include "GaudiKernel/DataObject.h"
16 
17 #include <ostream>
18 #include <string>
19 
20 class IVersHistoryObj;
21 
32 public:
33  HistoryObj() = default;
34  virtual ~HistoryObj() = default;
35 
36  const CLID& clID() const override { return classID(); }
37  static const CLID& classID();
38  static std::string convert_string( const std::string& );
39 
40  virtual void dump( std::ostream&, const bool isXML = false, int indent = 0 ) const = 0;
41 
42 protected:
43  virtual void indent( std::ostream&, int ) const;
44 };
45 
46 // Output stream.
48 
49 #endif
GAUDI_API std::ostream & operator<<(std::ostream &lhs, const HistoryObj &rhs)
Definition: HistoryObj.cpp:75
static const CLID & classID()
Retrieve reference to class definition structure (static access)
Definition: DataObject.cpp:69
Base class for History Objects.
Definition: HistoryObj.h:31
const CLID & clID() const override
Retrieve reference to class definition structure.
Definition: HistoryObj.h:36
STL class.
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
Interface for Versioned History Objects.
#define GAUDI_API
Definition: Kernel.h:81
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:40
STL class.