The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
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
23namespace 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
std::map< std::string, std::string > m_metadata
Definition MetaDataSvc.h:39
bool isEnabled() const
Definition MetaDataSvc.h:30
StatusCode start() override
std::map< std::string, std::string > getMetaDataMap() const override
StatusCode collectData()
Gaudi::Property< bool > m_isEnabled
Definition MetaDataSvc.h:37
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Base class used to extend a class implementing other interfaces.
Definition extends.h:19
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1