The Gaudi Framework  v40r0 (475e45c1)
MetaDataSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 #pragma once
19 
21 #include <GaudiKernel/Service.h>
22 
23 namespace Gaudi {
24  class MetaDataSvc : public extends<Service, IMetaDataSvc> {
25  public:
26  using extends::extends;
27 
28  StatusCode start() override;
29 
30  bool isEnabled() const { return m_isEnabled; }
31 
33 
34  std::map<std::string, std::string> getMetaDataMap() const override;
35 
36  private:
37  Gaudi::Property<bool> m_isEnabled{ this, "Enabled", true };
38 
39  std::map<std::string, std::string> m_metadata;
40  };
41 } // namespace Gaudi
Gaudi::MetaDataSvc::collectData
StatusCode collectData()
Definition: MetaDataSvc.cpp:40
Gaudi::MetaDataSvc::m_metadata
std::map< std::string, std::string > m_metadata
Definition: MetaDataSvc.h:39
Gaudi::MetaDataSvc
Definition: MetaDataSvc.h:24
StatusCode
Definition: StatusCode.h:64
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:19
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
Gaudi::MetaDataSvc::isEnabled
bool isEnabled() const
Definition: MetaDataSvc.h:30
Service.h
Gaudi::MetaDataSvc::getMetaDataMap
std::map< std::string, std::string > getMetaDataMap() const override
Definition: MetaDataSvc.cpp:38
Gaudi::MetaDataSvc::start
StatusCode start() override
Definition: MetaDataSvc.cpp:33
Gaudi::MetaDataSvc::m_isEnabled
Gaudi::Property< bool > m_isEnabled
Definition: MetaDataSvc.h:37
IMetaDataSvc.h
Gaudi::Property< bool >