|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
00001 // $Id: HistogramPersistencySvc.h,v 1.5 2008/10/09 13:40:18 marcocle Exp $ 00002 // =========================================================================== 00003 // 00004 // HistogramPersistencySvc.h 00005 // ------------------------------------------------------------ 00006 // 00007 // Package : PersistencySvc 00008 // 00009 // Author : Markus Frank 00010 // 00011 // =========================================================== 00012 #ifndef PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 00013 #define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 1 00014 // ============================================================================ 00015 // Incldue files 00016 // ============================================================================ 00017 // STD & STL 00018 // ============================================================================ 00019 #include <string> 00020 #include <vector> 00021 #include <set> 00022 // ============================================================================ 00023 // local 00024 // ============================================================================ 00025 #include "PersistencySvc.h" 00026 // ============================================================================ 00048 class HistogramPersistencySvc : virtual public PersistencySvc 00049 { 00050 public: 00051 friend class SvcFactory<HistogramPersistencySvc>; 00052 friend class Factory<HistogramPersistencySvc,IService* (std::string,ISvcLocator *)>; 00053 public: 00056 00057 virtual StatusCode initialize(); 00059 virtual StatusCode reinitialize(); 00061 virtual StatusCode finalize(); 00063 virtual StatusCode createRep(DataObject* pObject, IOpaqueAddress*& refpAddress); 00065 00068 00069 HistogramPersistencySvc(const std::string& name, ISvcLocator* svc); 00070 00072 virtual ~HistogramPersistencySvc(); 00074 public: 00075 // ========================================================================== 00077 typedef std::vector<std::string> Strings ; // the vector of strings 00079 typedef std::set<std::string> Set ; // unconverted histograms 00080 // ========================================================================== 00081 protected: 00083 std::string m_histPersName; // Name of the Hist Pers type 00085 std::string m_outputFile ; // Name of the outputFile 00087 Strings m_convert ; // the list of patterns to be converted 00089 Strings m_exclude ; // the list of patterns to be excludes 00091 Set m_converted ; 00093 Set m_excluded ; 00095 bool m_warnings; 00096 // ========================================================================== 00097 }; 00098 // ============================================================================ 00099 // The END 00100 // ============================================================================ 00101 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 00102 // ============================================================================