#include <src/JobOptionsSvc/PropertyValue.h>
Definition at line 19 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 |
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 65 of file PropertyValue.cpp.
PropertyValue(Value value, bool is_reference=false)
gp::PropertyValue & Gaudi::Parsers::PropertyValue::operator+= |
( |
const PropertyValue & |
right | ) |
|
Definition at line 28 of file PropertyValue.cpp.
35 if (
right.IsSimple()) {
37 boost::get<std::string>(
right.value_));
40 if (
right.IsVector()){
42 for (
const auto& item : boost::get<VectorOfStrings>(
right.value_)) {
56 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 113 of file PropertyValue.cpp.
PropertyValue(Value value, bool is_reference=false)
gp::PropertyValue & Gaudi::Parsers::PropertyValue::operator-= |
( |
const PropertyValue & |
right | ) |
|
Definition at line 71 of file PropertyValue.cpp.
78 if (
right.IsSimple()) {
83 if (
right.IsVector()) {
85 for (
const auto& item : rvec) {
86 vec.erase(
std::find(vec.begin(), vec.end(), item));
95 if (
right.IsSimple()) {
96 map.erase(
right.String());
100 if (
right.IsVector()) {
102 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 117 of file PropertyValue.cpp.
120 value = boost::get<std::vector<std::string> >(&
value_);
121 assert(value != NULL);
122 if (value->
at(0) !=
"") {
123 return "@"+value->
at(0)+
"."+value->
at(1);
125 return "@"+value->
at(0);
134 for (
const auto& in : *value) {
135 result += delim + in;
143 for (
const auto& in : *value) {
144 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: