| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

StatusCodeSvc.h
Go to the documentation of this file.
1
2 #ifndef GAUDISVC_STATUSCODESVC_H
3 #define GAUDISVC_STATUSCODESVC_H
4
5 #include "GaudiKernel/IStatusCodeSvc.h"
6 #include "GaudiKernel/Service.h"
7
8 #include <map>
9 #include <set>
10 #include <string>
11
12 class StatusCodeSvc : public extends<Service, IStatusCodeSvc>
13 {
14
15 public:
16 StatusCode initialize() override;
17 StatusCode reinitialize() override;
18 StatusCode finalize() override;
19
20 void regFnc( const std::string& func, const std::string& lib ) override;
21 void list() const override;
22 bool suppressCheck() const override { return m_suppress.value(); }
23
24 using extends::extends;
25
26 // Destructor.
27 ~StatusCodeSvc() override = default;
28
29 private:
30 struct StatCodeDat final {
31 std::string fnc;
32 std::string lib;
33 int count;
34 };
35
36 void parseFilter( const std::string& str, std::string& fnc, std::string& lib );
37 void filterFnc( const std::string& );
38 void filterLib( const std::string& );
39
40 Gaudi::Property<std::vector<std::string>> m_pFilter{this, "Filter"};
41 Gaudi::Property<bool> m_abort{this, "AbortOnError", false};
42 Gaudi::Property<bool> m_suppress{this, "SuppressCheck", false};
43 Gaudi::Property<bool> m_dict{this, "IgnoreDicts", true};
44
45 std::map<std::string, StatCodeDat> m_dat;
46 std::set<std::string> m_filterfnc, m_filterlib;
47 };
48
49 #endif
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
StatusCodeSvc::m_dict
Gaudi::Property< bool > m_dict
Definition: StatusCodeSvc.h:43
StatusCodeSvc::StatCodeDat::fnc
std::string fnc
Definition: StatusCodeSvc.h:31
StatusCodeSvc::reinitialize
StatusCode reinitialize() override
Definition: StatusCodeSvc.cpp:51
StatusCodeSvc::StatCodeDat::lib
std::string lib
Definition: StatusCodeSvc.h:32
std::map
STL class.
IStatusCodeSvc.h
std::string
STL class.
StatusCodeSvc::parseFilter
void parseFilter(const std::string &str, std::string &fnc, std::string &lib)
Definition: StatusCodeSvc.cpp:205
StatusCodeSvc::initialize
StatusCode initialize() override
Definition: StatusCodeSvc.cpp:19
Service.h
GaudiPluginService.cpluginsvc.func
func
Definition: cpluginsvc.py:218
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
StatusCodeSvc::StatCodeDat::count
int count
Definition: StatusCodeSvc.h:33
StatusCodeSvc::suppressCheck
bool suppressCheck() const override
Definition: StatusCodeSvc.h:22
StatusCodeSvc::~StatusCodeSvc
~StatusCodeSvc() override=default
StatusCodeSvc::m_filterfnc
std::set< std::string > m_filterfnc
Definition: StatusCodeSvc.h:46
StatusCodeSvc::regFnc
void regFnc(const std::string &func, const std::string &lib) override
Definition: StatusCodeSvc.cpp:85
StatusCodeSvc::m_abort
Gaudi::Property< bool > m_abort
Definition: StatusCodeSvc.h:41
std::set< std::string >
StatusCodeSvc::m_suppress
Gaudi::Property< bool > m_suppress
Definition: StatusCodeSvc.h:42
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
StatusCodeSvc::filterLib
void filterLib(const std::string &)
Definition: StatusCodeSvc.cpp:193
StatusCodeSvc::m_dat
std::map< std::string, StatCodeDat > m_dat
Definition: StatusCodeSvc.h:45
StatusCodeSvc::m_pFilter
Gaudi::Property< std::vector< std::string > > m_pFilter
Definition: StatusCodeSvc.h:40
StatusCodeSvc
Definition: StatusCodeSvc.h:12
StatusCodeSvc::StatCodeDat
Definition: StatusCodeSvc.h:30
StatusCodeSvc::filterFnc
void filterFnc(const std::string &)
Definition: StatusCodeSvc.cpp:181
StatusCodeSvc::list
void list() const override
Definition: StatusCodeSvc.cpp:145
StatusCodeSvc::finalize
StatusCode finalize() override
Definition: StatusCodeSvc.cpp:61
StatusCodeSvc::m_filterlib
std::set< std::string > m_filterlib
Definition: StatusCodeSvc.h:46