| The Gaudi Framework v27r1

- 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/Service.h"
6 #include "GaudiKernel/IStatusCodeSvc.h"
7
8 #include <string>
9 #include <map>
10 #include <set>
11
12 class StatusCodeSvc: public extends<Service,
13 IStatusCodeSvc> {
14
15 public:
16
17 StatusCode initialize() override;
18 StatusCode reinitialize() override;
19 StatusCode finalize() override;
20
21 void regFnc(const std::string &func, const std::string &lib) override;
22 void list() const override;
23 bool suppressCheck() const override { return m_suppress.value() ; }
24
25 StatusCodeSvc( const std::string& name, ISvcLocator* svc );
26
27 // Destructor.
28 ~StatusCodeSvc() override = default;
29
30 private:
31
32 struct StatCodeDat final {
33 std::string fnc;
34 std::string lib;
35 int count;
36 };
37
38 void parseFilter(const std::string& str, std::string& fnc, std::string& lib);
39 void filterFnc(const std::string&);
40 void filterLib(const std::string&);
41
42 StringArrayProperty m_pFilter;
43 BooleanProperty m_abort, m_suppress, m_dict;
44
45 std::map<std::string,StatCodeDat> m_dat;
46 std::set<std::string> m_filterfnc, m_filterlib;
47
48 };
49
50 #endif
StatusCodeSvc::m_abort
BooleanProperty m_abort
Definition: StatusCodeSvc.h:43
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
StatusCodeSvc::m_dict
BooleanProperty m_dict
Definition: StatusCodeSvc.h:43
StatusCodeSvc::StatCodeDat::fnc
std::string fnc
Definition: StatusCodeSvc.h:33
StatusCodeSvc::reinitialize
StatusCode reinitialize() override
Definition: StatusCodeSvc.cpp:63
StatusCodeSvc::list
void list() const override
Definition: StatusCodeSvc.cpp:153
StatusCodeSvc::m_dat
std::map< std::string, StatCodeDat > m_dat
Definition: StatusCodeSvc.h:45
StatusCodeSvc::m_suppress
BooleanProperty m_suppress
Definition: StatusCodeSvc.h:43
StatusCodeSvc::StatCodeDat::lib
std::string lib
Definition: StatusCodeSvc.h:34
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:213
StatusCodeSvc::initialize
StatusCode initialize() override
Definition: StatusCodeSvc.cpp:31
SimpleProperty< std::vector< std::string > >
Service.h
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
GaudiPluginService.cpluginsvc.func
tuple 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:35
StatusCodeSvc::suppressCheck
bool suppressCheck() const override
Definition: StatusCodeSvc.h:23
StatusCodeSvc::~StatusCodeSvc
~StatusCodeSvc() override=default
StatusCodeSvc::m_filterfnc
std::set< std::string > m_filterfnc
Definition: StatusCodeSvc.h:46
PropertyWithValue::value
const TYPE & value() const
explicit conversion
Definition: Property.h:341
StatusCodeSvc::regFnc
void regFnc(const std::string &func, const std::string &lib) override
Definition: StatusCodeSvc.cpp:97
StatusCodeSvc::m_pFilter
StringArrayProperty m_pFilter
Definition: StatusCodeSvc.h:42
std::set< std::string >
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
StatusCodeSvc::StatusCodeSvc
StatusCodeSvc(const std::string &name, ISvcLocator *svc)
Definition: StatusCodeSvc.cpp:16
StatusCodeSvc::filterLib
void filterLib(const std::string &)
Definition: StatusCodeSvc.cpp:201
StatusCodeSvc
Definition: StatusCodeSvc.h:12
StatusCodeSvc::StatCodeDat
Definition: StatusCodeSvc.h:32
StatusCodeSvc::filterFnc
void filterFnc(const std::string &)
Definition: StatusCodeSvc.cpp:189
StatusCodeSvc::finalize
StatusCode finalize() override
Definition: StatusCodeSvc.cpp:73
StatusCodeSvc::m_filterlib
std::set< std::string > m_filterlib
Definition: StatusCodeSvc.h:46