| The Gaudi Framework v28r2-patches (bc4ad17a)

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

- File List
- File Members

MetaDataSvc.h
Go to the documentation of this file.
1 /*
2 * MetaDataSvc.h
3 *
4 * Created on: Mar 24, 2015
5 * Author: Ana Trisovic
6 */
7
8 #ifndef GAUDISVC_SRC_METADATASVC_METADATASVC_H_
9 #define GAUDISVC_SRC_METADATASVC_METADATASVC_H_
10 #include "GaudiKernel/IMetaDataSvc.h"
11 #include "GaudiKernel/Service.h"
12
13 namespace Gaudi
14 {
15 class MetaDataSvc : public extends<Service, IMetaDataSvc>
16 {
17 public:
18 using extends::extends;
19 ~MetaDataSvc() override = default;
20
21 StatusCode start() override;
22
23 inline bool isEnabled() const { return m_isEnabled; }
24
25 StatusCode collectData();
26
27 MetaData* getMetaData() override;
28 std::map<std::string, std::string> getMetaDataMap() override;
29
30 private:
31 Gaudi::Property<bool> m_isEnabled{this, "Enabled", true};
32
33 std::map<std::string, std::string> m_metadata;
34 };
35 }
36
37 #endif /* GAUDISVC_SRC_METADATASVC_METADATASVC_H_ */
Gaudi::MetaDataSvc::isEnabled
bool isEnabled() const
Definition: MetaDataSvc.h:23
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
Gaudi::MetaDataSvc::m_isEnabled
Gaudi::Property< bool > m_isEnabled
Definition: MetaDataSvc.h:31
std::map< std::string, std::string >
Service.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IMetaDataSvc.h
Gaudi::MetaDataSvc::start
StatusCode start() override
Definition: MetaDataSvc.cpp:54
Gaudi::MetaDataSvc
Definition: MetaDataSvc.h:15
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Gaudi::MetaDataSvc::getMetaDataMap
std::map< std::string, std::string > getMetaDataMap() override
Definition: MetaDataSvc.cpp:60
Gaudi::MetaDataSvc::~MetaDataSvc
~MetaDataSvc() override=default
MetaData
Definition: MetaData.h:21
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
Gaudi::MetaDataSvc::getMetaData
MetaData * getMetaData() override
Definition: MetaDataSvc.cpp:59
Gaudi::MetaDataSvc::collectData
StatusCode collectData()
Definition: MetaDataSvc.cpp:61
Gaudi::MetaDataSvc::m_metadata
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:33