#include <src/JobOptionsSvc/PropertyValue.h>
Definition at line 22 of file PropertyValue.h.
Gaudi::Parsers::PropertyValue::PropertyValue |
( |
Value |
value, |
|
|
bool |
is_reference = false |
|
) |
| |
|
inlineexplicit |
Gaudi::Parsers::PropertyValue::PropertyValue |
( |
Value |
value, |
|
|
const Position & |
position, |
|
|
bool |
is_reference = false |
|
) |
| |
|
inline |
bool Gaudi::Parsers::PropertyValue::HasPosition |
( |
| ) |
const |
|
inline |
bool Gaudi::Parsers::PropertyValue::IsMap |
( |
| ) |
const |
Definition at line 19 of file PropertyValue.cpp.
19 {
return boost::get<std::map<std::string, std::string>>( &
value_ ) != NULL; }
bool Gaudi::Parsers::PropertyValue::IsReference |
( |
| ) |
const |
|
inline |
bool Gaudi::Parsers::PropertyValue::IsSimple |
( |
| ) |
const |
bool Gaudi::Parsers::PropertyValue::IsVector |
( |
| ) |
const |
const MapOfStrings& Gaudi::Parsers::PropertyValue::Map |
( |
| ) |
const |
|
inline |
const gp::PropertyValue Gaudi::Parsers::PropertyValue::operator+ |
( |
const PropertyValue & |
right | ) |
|
Definition at line 57 of file PropertyValue.cpp.
PropertyValue(Value value, bool is_reference=false)
gp::PropertyValue & Gaudi::Parsers::PropertyValue::operator+= |
( |
const PropertyValue & |
right | ) |
|
Definition at line 21 of file PropertyValue.cpp.
29 if (
right.IsSimple() ) {
33 if (
right.IsVector() ) {
35 for (
const auto& item : boost::get<VectorOfStrings>(
right.value_ ) ) {
44 if ( !
right.IsMap() ) {
49 for (
const auto& item : rmap ) {
std::vector< std::string > VectorOfStrings
std::map< std::string, std::string > MapOfStrings
void push_back(Container &c, const Value &v, std::true_type)
struct GAUDI_API map
Parametrisation class for map-like implementation.
static PropertyValueException WrongRValue()
static PropertyValueException WrongLValue()
const gp::PropertyValue Gaudi::Parsers::PropertyValue::operator- |
( |
const PropertyValue & |
right | ) |
|
Definition at line 104 of file PropertyValue.cpp.
PropertyValue(Value value, bool is_reference=false)
gp::PropertyValue & Gaudi::Parsers::PropertyValue::operator-= |
( |
const PropertyValue & |
right | ) |
|
Definition at line 62 of file PropertyValue.cpp.
70 if (
right.IsSimple() ) {
75 if (
right.IsVector() ) {
77 for (
const auto& item : rvec ) {
78 vec.erase(
std::find( vec.begin(), vec.end(), item ) );
87 if (
right.IsSimple() ) {
88 map.erase(
right.String() );
92 if (
right.IsVector() ) {
94 for (
const auto& item : rvec ) {
std::vector< std::string > VectorOfStrings
std::map< std::string, std::string > MapOfStrings
struct GAUDI_API map
Parametrisation class for map-like implementation.
static PropertyValueException WrongRValue()
VectorOfStrings & Vector()
static PropertyValueException WrongLValue()
const Position& Gaudi::Parsers::PropertyValue::position |
( |
| ) |
const |
|
inline |
const std::string& Gaudi::Parsers::PropertyValue::String |
( |
| ) |
const |
|
inline |
std::string Gaudi::Parsers::PropertyValue::ToString |
( |
| ) |
const |
Definition at line 109 of file PropertyValue.cpp.
113 assert( value != NULL );
114 if ( value->
at( 0 ) !=
"" ) {
115 return "@" + value->
at( 0 ) +
"." + value->
at( 1 );
117 return "@" + value->
at( 0 );
125 for (
const auto& in : *value ) {
126 result += delim + in;
134 for (
const auto& in : *value ) {
135 result += delim + in.first +
":" + in.second;
bool Gaudi::Parsers::PropertyValue::is_reference_ |
|
private |
Position Gaudi::Parsers::PropertyValue::position_ |
|
private |
Value Gaudi::Parsers::PropertyValue::value_ |
|
private |
The documentation for this class was generated from the following files: