| The Gaudi Framework v32r1 (f65d50dc)

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
11 #include "GaudiKernel/IMetaDataSvc.h"
12 #include "GaudiKernel/Service.h"
13
14 namespace Gaudi {
15 class MetaDataSvc : public extends<Service, IMetaDataSvc> {
16 public:
17 using extends::extends;
18
19 StatusCode start() override;
20
21 bool isEnabled() const { return m_isEnabled; }
22
23 StatusCode collectData();
24
25 std::map<std::string, std::string> getMetaDataMap() const override;
26
27 private:
28 Gaudi::Property<bool> m_isEnabled{this, "Enabled", true};
29
30 std::map<std::string, std::string> m_metadata;
31 };
32 } // namespace Gaudi
33
34 #endif /* GAUDISVC_SRC_METADATASVC_METADATASVC_H_ */
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
Gaudi::MetaDataSvc::getMetaDataMap
std::map< std::string, std::string > getMetaDataMap() const override
Definition: MetaDataSvc.cpp:54
Gaudi::MetaDataSvc::isEnabled
bool isEnabled() const
Definition: MetaDataSvc.h:21
Gaudi::MetaDataSvc::m_isEnabled
Gaudi::Property< bool > m_isEnabled
Definition: MetaDataSvc.h:28
std::map< std::string, std::string >
Service.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IMetaDataSvc.h
Gaudi::MetaDataSvc::start
StatusCode start() override
Definition: MetaDataSvc.cpp:49
Gaudi::MetaDataSvc
Definition: MetaDataSvc.h:15
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
Gaudi::MetaDataSvc::collectData
StatusCode collectData()
Definition: MetaDataSvc.cpp:56
Gaudi::MetaDataSvc::m_metadata
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:30