The Gaudi Framework
master (57817a18)
Toggle main menu visibility
Loading...
Searching...
No Matches
JSONPropertyAlg.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2026 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 or *
9
* submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include <
Gaudi/Property.h
>
12
#include <
GaudiKernel/Algorithm.h
>
13
#include <nlohmann/json.hpp>
14
15
class
JSONPropertyAlg
final :
public
Algorithm
{
16
public
:
17
using
Algorithm::Algorithm
;
18
19
StatusCode
execute
()
override
{
return
StatusCode::SUCCESS
; }
20
21
private
:
22
Gaudi::Property<nlohmann::json>
m_json
{
this
,
"JSON"
, nlohmann::json::object() };
23
};
24
25
DECLARE_COMPONENT
(
JSONPropertyAlg
)
Property.h
Algorithm.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition
PluginServiceV1.h:45
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
JSONPropertyAlg
Definition
JSONPropertyAlg.cpp:15
JSONPropertyAlg::m_json
Gaudi::Property< nlohmann::json > m_json
Definition
JSONPropertyAlg.cpp:22
JSONPropertyAlg::execute
StatusCode execute() override
Definition
JSONPropertyAlg.cpp:19
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
GaudiTestSuite
src
Properties
JSONPropertyAlg.cpp
Generated on
for The Gaudi Framework by
1.17.0