| The Gaudi Framework v27r1

- 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 class MetaDataSvc : public extends<Service, IMetaDataSvc> {
15 public:
16 // Standard Constructor.
17 // Input: name String with service name
18 // Input: svc Pointer to service locator interface
19 MetaDataSvc( const std::string& name, ISvcLocator* svc );
20
21 // Destructor.
22 ~MetaDataSvc();
23
24 StatusCode initialize();
25 StatusCode start();
26 bool isEnabled() const ;
27
28 StatusCode collectData();
29
30 MetaData* getMetaData();
31 std::map <std::string, std::string> getMetaDataMap();
32
33 private:
34 bool m_isEnabled;
35 std::map <std::string, std::string> m_metadata;
36 };
37 }
38
39 #endif /* GAUDISVC_SRC_METADATASVC_METADATASVC_H_ */
Gaudi::MetaDataSvc::isEnabled
bool isEnabled() const
Definition: MetaDataSvc.cpp:68
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Gaudi::MetaDataSvc::initialize
StatusCode initialize()
Definition: MetaDataSvc.cpp:63
std::map< std::string, std::string >
Gaudi::MetaDataSvc::getMetaDataMap
std::map< std::string, std::string > getMetaDataMap()
Definition: MetaDataSvc.cpp:80
std::string
STL class.
Service.h
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IMetaDataSvc.h
Gaudi::MetaDataSvc
Definition: MetaDataSvc.h:14
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Gaudi::MetaDataSvc::~MetaDataSvc
~MetaDataSvc()
Definition: MetaDataSvc.cpp:75
Gaudi::MetaDataSvc::getMetaData
MetaData * getMetaData()
Definition: MetaDataSvc.cpp:77
Gaudi::MetaDataSvc::start
StatusCode start()
Definition: MetaDataSvc.cpp:71
MetaData
Definition: MetaData.h:21
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
Gaudi::MetaDataSvc::MetaDataSvc
MetaDataSvc(const std::string &name, ISvcLocator *svc)
Definition: MetaDataSvc.cpp:58
Gaudi::MetaDataSvc::collectData
StatusCode collectData()
Definition: MetaDataSvc.cpp:83
Gaudi::MetaDataSvc::m_isEnabled
bool m_isEnabled
Definition: MetaDataSvc.h:34
Gaudi::MetaDataSvc::m_metadata
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:35