The Gaudi Framework  master (45d96d4f)
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>
13#include <nlohmann/json.hpp>
14
15class JSONPropertyAlg final : public Algorithm {
16public:
18
19 StatusCode execute() override { return StatusCode::SUCCESS; }
20
21private:
22 Gaudi::Property<nlohmann::json> m_json{ this, "JSON", nlohmann::json::object() };
23};
24
#define DECLARE_COMPONENT(type)
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
Implementation of property with value of concrete type.
Definition Property.h:35
Gaudi::Property< nlohmann::json > m_json
StatusCode execute() override
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
constexpr static const auto SUCCESS
Definition StatusCode.h:99