The Gaudi Framework
v36r10 (fc05264c)
CustomPropertiesAlg.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
#ifndef PROPERTIES_CUSTOMPROPERTIESALG_H
12
#define PROPERTIES_CUSTOMPROPERTIESALG_H 1
13
// Include files
14
// from Gaudi
15
#include "
GaudiAlg/GaudiAlgorithm.h
"
16
17
#include <unordered_map>
18
19
namespace
Gaudi
{
20
namespace
Examples {
28
class
CustomPropertiesAlg
:
public
GaudiAlgorithm
{
29
public
:
31
using
GaudiAlgorithm::GaudiAlgorithm
;
32
33
StatusCode
initialize
()
override
;
34
StatusCode
execute
()
override
;
35
StatusCode
finalize
()
override
;
36
private
:
37
Gaudi::Property<std::unordered_map<std::string, std::string>
>
m_unorderedMap
{
this
,
"UnorderedMap"
};
38
};
39
}
// namespace Examples
40
}
// namespace Gaudi
41
42
#endif // PROPERTIES_CUSTOMPROPERTIESALG_H
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm(std::string name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition:
GaudiAlgorithm.cpp:45
Gaudi::Examples::CustomPropertiesAlg::finalize
StatusCode finalize() override
Algorithm finalization.
Definition:
CustomPropertiesAlg.cpp:103
Gaudi::Examples::CustomPropertiesAlg::m_unorderedMap
Gaudi::Property< std::unordered_map< std::string, std::string > > m_unorderedMap
Definition:
CustomPropertiesAlg.h:37
StatusCode
Definition:
StatusCode.h:65
Gaudi::Examples::CustomPropertiesAlg::initialize
StatusCode initialize() override
Algorithm initialization.
Definition:
CustomPropertiesAlg.cpp:78
GaudiAlgorithm
Definition:
GaudiAlgorithm.h:104
Gaudi
Header file for std:chrono::duration-based Counters.
Definition:
__init__.py:1
GaudiAlgorithm.h
Gaudi::Examples::CustomPropertiesAlg
Definition:
CustomPropertiesAlg.h:28
Gaudi::Examples::CustomPropertiesAlg::execute
StatusCode execute() override
Algorithm execution.
Definition:
CustomPropertiesAlg.cpp:92
Gaudi::Property
Implementation of property with value of concrete type.
Definition:
Property.h:39
GaudiExamples
src
Properties
CustomPropertiesAlg.h
Generated on Tue Feb 14 2023 15:08:33 for The Gaudi Framework by
1.8.18