All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HistogramPersistencySvc.h
Go to the documentation of this file.
1 // ===========================================================================
2 //
3 // HistogramPersistencySvc.h
4 // ------------------------------------------------------------
5 //
6 // Package : PersistencySvc
7 //
8 // Author : Markus Frank
9 //
10 // ===========================================================
11 #ifndef PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
12 #define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 1
13 // ============================================================================
14 // Incldue files
15 // ============================================================================
16 // STD & STL
17 // ============================================================================
18 #include <string>
19 #include <vector>
20 #include <set>
21 // ============================================================================
22 // local
23 // ============================================================================
24 #include "PersistencySvc.h"
25 // ============================================================================
48 {
49 public:
52  StatusCode initialize() override;
55  StatusCode reinitialize() override;
57  StatusCode finalize() override;
59  StatusCode createRep(DataObject* pObject, IOpaqueAddress*& refpAddress) override;
61 
64  HistogramPersistencySvc(const std::string& name, ISvcLocator* svc);
66 
68  ~HistogramPersistencySvc() override = default;
70 public:
71  // ==========================================================================
73  typedef std::vector<std::string> Strings ; // the vector of strings
75  typedef std::set<std::string> Set ; // unconverted histograms
76  // ==========================================================================
77 protected:
79  std::string m_histPersName; // Name of the Hist Pers type
81  std::string m_outputFile ; // Name of the outputFile
83  Strings m_convert ; // the list of patterns to be converted
85  Strings m_exclude ; // the list of patterns to be excludes
89  Set m_excluded ;
91  bool m_warnings;
92  // ==========================================================================
93 };
94 // ============================================================================
95 // The END
96 // ============================================================================
97 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
98 // ============================================================================
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Set m_excluded
for the final report: the list of excluded histograms
StatusCode finalize() override
Finalize the service.
Strings m_convert
the list of patterns to be converted
StatusCode reinitialize() override
Reinitialize the service.
Set m_converted
for the final report: the list of converted histograms
bool m_warnings
Flag to disable warning messages when using external input.
StatusCode initialize() override
Initialize the service.
~HistogramPersistencySvc() override=default
Standard Destructor.
std::vector< std::string > Strings
the actual type for the vector of strings
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
PersistencySvc class implementation definition.
HistogramPersistencySvc class implementation definition.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Strings m_exclude
the list of patterns to be excludes
std::set< std::string > Set
for report: unconverted histograms
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
std::string m_outputFile
Name of the outputFile.
std::string m_histPersName
Name of the Hist Pers type.