All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HistogramPersistencySvc.h
Go to the documentation of this file.
1 // $Id: HistogramPersistencySvc.h,v 1.5 2008/10/09 13:40:18 marcocle Exp $
2 // ===========================================================================
3 //
4 // HistogramPersistencySvc.h
5 // ------------------------------------------------------------
6 //
7 // Package : PersistencySvc
8 //
9 // Author : Markus Frank
10 //
11 // ===========================================================
12 #ifndef PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
13 #define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 1
14 // ============================================================================
15 // Incldue files
16 // ============================================================================
17 // STD & STL
18 // ============================================================================
19 #include <string>
20 #include <vector>
21 #include <set>
22 // ============================================================================
23 // local
24 // ============================================================================
25 #include "PersistencySvc.h"
26 // ============================================================================
49 {
50 public:
53  virtual StatusCode initialize();
56  virtual StatusCode reinitialize();
58  virtual StatusCode finalize();
60  virtual StatusCode createRep(DataObject* pObject, IOpaqueAddress*& refpAddress);
62 
65  HistogramPersistencySvc(const std::string& name, ISvcLocator* svc);
67 
69  virtual ~HistogramPersistencySvc();
71 public:
72  // ==========================================================================
74  typedef std::vector<std::string> Strings ; // the vector of strings
76  typedef std::set<std::string> Set ; // unconverted histograms
77  // ==========================================================================
78 protected:
80  std::string m_histPersName; // Name of the Hist Pers type
82  std::string m_outputFile ; // Name of the outputFile
84  Strings m_convert ; // the list of patterns to be converted
86  Strings m_exclude ; // the list of patterns to be excludes
92  bool m_warnings;
93  // ==========================================================================
94 };
95 // ============================================================================
96 // The END
97 // ============================================================================
98 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
99 // ============================================================================
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Implementation of IConverter: Convert the transient object to the requested representation.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
Set m_excluded
for the final report: the list of excluded histograms
Strings m_convert
the list of patterns to be converted
virtual StatusCode reinitialize()
Reinitialize the service.
Set m_converted
for the final report: the list of converted histograms
virtual StatusCode initialize()
Initialize the service.
bool m_warnings
Flag to disable warning messages when using external input.
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:30
virtual StatusCode finalize()
Finalize the service.
PersistencySvc class implementation definition.
HistogramPersistencySvc class implementation definition.
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
virtual const std::string & name() const
Retrieve name of the service.
Definition: Service.cpp:331
virtual ~HistogramPersistencySvc()
Standard Destructor.
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:31
std::string m_outputFile
Name of the outputFile.
std::string m_histPersName
Name of the Hist Pers type.