#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/PropertyValue.h>
Definition at line 22 of file PropertyValue.h.
◆ MapOfStrings
◆ Value
◆ VectorOfStrings
◆ PropertyValue() [1/2]
Gaudi::Parsers::PropertyValue::PropertyValue |
( |
Value | value, |
|
|
bool | is_reference = false ) |
|
inlineexplicit |
◆ PropertyValue() [2/2]
Gaudi::Parsers::PropertyValue::PropertyValue |
( |
Value | value, |
|
|
const Position & | position, |
|
|
bool | is_reference = false ) |
|
inline |
◆ HasPosition()
bool Gaudi::Parsers::PropertyValue::HasPosition |
( |
| ) |
const |
|
inline |
◆ IsMap()
bool Gaudi::Parsers::PropertyValue::IsMap |
( |
| ) |
const |
◆ IsReference()
bool Gaudi::Parsers::PropertyValue::IsReference |
( |
| ) |
const |
|
inline |
◆ IsSimple()
bool Gaudi::Parsers::PropertyValue::IsSimple |
( |
| ) |
const |
◆ IsVector()
bool Gaudi::Parsers::PropertyValue::IsVector |
( |
| ) |
const |
◆ Map() [1/2]
◆ Map() [2/2]
const MapOfStrings & Gaudi::Parsers::PropertyValue::Map |
( |
| ) |
const |
|
inline |
◆ operator+()
Definition at line 36 of file PropertyValue.cpp.
36 {
38}
PropertyValue(Value value, bool is_reference=false)
◆ operator+=()
Definition at line 22 of file PropertyValue.cpp.
22 {
23
25 std::visit(
28 [](
VectorOfStrings& lhs,
const std::string& rhs ) { lhs.push_back( rhs ); },
33 return *this;
34}
static PropertyValueException WrongRValue()
static PropertyValueException WrongLValue()
std::vector< std::string > VectorOfStrings
std::map< std::string, std::string, std::less<> > MapOfStrings
auto overload(lambda_ts &&... lambdas)
◆ operator-()
◆ operator-=()
Definition at line 40 of file PropertyValue.cpp.
40 {
43 const std::string& rhs ) { lhs.erase( std::find( lhs.begin(), lhs.end(), rhs ) ); },
45 for ( const auto& item : rhs ) lhs.erase( std::find( lhs.begin(), lhs.end(), item ) );
46 },
47 [](
MapOfStrings& lhs,
const std::string& rhs ) { lhs.erase( rhs ); },
49 for ( const auto& item : rhs ) lhs.erase( item );
50 },
54 return *this;
55}
◆ position()
const Position & Gaudi::Parsers::PropertyValue::position |
( |
| ) |
const |
|
inline |
◆ String() [1/2]
std::string & Gaudi::Parsers::PropertyValue::String |
( |
| ) |
|
|
inline |
◆ String() [2/2]
const std::string & Gaudi::Parsers::PropertyValue::String |
( |
| ) |
const |
|
inline |
◆ ToString()
std::string Gaudi::Parsers::PropertyValue::ToString |
( |
| ) |
const |
Definition at line 61 of file PropertyValue.cpp.
61 {
63 const auto& value = std::get<VectorOfStrings>(
value_ );
64 if ( value.at( 0 ) != "" ) {
65 return "@" + value.at( 0 ) + "." + value.at( 1 );
66 } else {
67 return "@" + value.at( 0 );
68 }
69 }
70 return std::visit(
71 []( const auto& v ) {
72
73 using GaudiUtils::operator<<;
74 std::ostringstream
s{};
77 },
79}
◆ Vector() [1/2]
◆ Vector() [2/2]
◆ is_reference_
bool Gaudi::Parsers::PropertyValue::is_reference_ |
|
private |
◆ position_
Position Gaudi::Parsers::PropertyValue::position_ |
|
private |
◆ value_
Value Gaudi::Parsers::PropertyValue::value_ |
|
private |
The documentation for this class was generated from the following files: