The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Property.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 2011-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#include "Property.h"
12#include "PropertyName.h"
13#include "PropertyValue.h"
14#include "Utils.h"
15
16namespace gp = Gaudi::Parsers;
17namespace gpu = Gaudi::Parsers::Utils;
18
19const gp::Position& gp::Property::DefinedPosition() const { return property_name_.position(); }
20const gp::Position& gp::Property::ValuePosition() const { return property_value_.position(); }
21const std::string& gp::Property::ClientName() const { return property_name_.client(); }
22const std::string& gp::Property::NameInClient() const { return property_name_.property(); }
23std::string gp::Property::FullName() const { return property_name_.ToString(); }
24std::string gp::Property::ValueAsString() const { return gpu::replaceEnvironments( property_value_.ToString() ); }
25std::string gp::Property::ToString() const { return FullName() + " = " + ValueAsString(); }
26bool gp::Property::IsSimple() const { return property_value_.IsSimple(); }
27bool gp::Property::IsVector() const { return property_value_.IsVector(); }
28bool gp::Property::IsMap() const { return property_value_.IsMap(); }
std::string ValueAsString() const
Definition Property.cpp:24
const Position & ValuePosition() const
Definition Property.cpp:20
std::string ToString() const
Definition Property.cpp:25
const std::string & NameInClient() const
Definition Property.cpp:22
const Position & DefinedPosition() const
Definition Property.cpp:19
const std::string & ClientName() const
Definition Property.cpp:21
PropertyName property_name_
Definition Property.h:60
PropertyValue property_value_
Definition Property.h:61
std::string FullName() const
Definition Property.cpp:23
std::string replaceEnvironments(std::string_view input)
Definition Utils.cpp:17