The Gaudi Framework  v29r0 (ff2e7097)
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_
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 
26 
27  MetaData* getMetaData() override;
29 
30  private:
31  Gaudi::Property<bool> m_isEnabled{this, "Enabled", true};
32 
34  };
35 }
36 
37 #endif /* GAUDISVC_SRC_METADATASVC_METADATASVC_H_ */
bool isEnabled() const
Definition: MetaDataSvc.h:23
Implementation of property with value of concrete type.
Definition: Property.h:319
Gaudi::Property< bool > m_isEnabled
Definition: MetaDataSvc.h:31
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
StatusCode start() override
Definition: MetaDataSvc.cpp:53
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
std::map< std::string, std::string > getMetaDataMap() override
Definition: MetaDataSvc.cpp:59
~MetaDataSvc() override=default
Helper functions to set/get the application return code.
Definition: __init__.py:1
MetaData * getMetaData() override
Definition: MetaDataSvc.cpp:58
StatusCode collectData()
Definition: MetaDataSvc.cpp:60
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:33