The Gaudi Framework  v33r0 (d5ea422b)
MetaDataSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 /*
12  * MetaDataSvc.h
13  *
14  * Created on: Mar 24, 2015
15  * Author: Ana Trisovic
16  */
17 
18 #ifndef GAUDISVC_SRC_METADATASVC_METADATASVC_H_
19 #define GAUDISVC_SRC_METADATASVC_METADATASVC_H_
20 
22 #include "GaudiKernel/Service.h"
23 
24 namespace Gaudi {
25  class MetaDataSvc : public extends<Service, IMetaDataSvc> {
26  public:
27  using extends::extends;
28 
29  StatusCode start() override;
30 
31  bool isEnabled() const { return m_isEnabled; }
32 
34 
36 
37  private:
38  Gaudi::Property<bool> m_isEnabled{this, "Enabled", true};
39 
41  };
42 } // namespace Gaudi
43 
44 #endif /* GAUDISVC_SRC_METADATASVC_METADATASVC_H_ */
Implementation of property with value of concrete type.
Definition: Property.h:370
std::map< std::string, std::string > getMetaDataMap() const override
Definition: MetaDataSvc.cpp:64
bool isEnabled() const
Definition: MetaDataSvc.h:31
Gaudi::Property< bool > m_isEnabled
Definition: MetaDataSvc.h:38
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
StatusCode start() override
Definition: MetaDataSvc.cpp:59
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
StatusCode collectData()
Definition: MetaDataSvc.cpp:66
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:40