The Gaudi Framework  master (d98a2936)
Gaudi::Parsers::Property Class Referencefinal

#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/Property.h>

Collaboration diagram for Gaudi::Parsers::Property:

Classes

struct  LessThen
 

Public Member Functions

 Property (PropertyName property_name, PropertyValue property_value)
 
const PropertyNameproperty_name () const
 
PropertyValueproperty_value ()
 
Propertyoperator+= (const PropertyValue &value)
 
Propertyoperator-= (const PropertyValue &value)
 
const PositionDefinedPosition () const
 
bool HasDefinedPosition () const
 
const PositionValuePosition () const
 
bool HasValuePosition () const
 
const std::string & ClientName () const
 
const std::string & NameInClient () const
 
std::string FullName () const
 
std::string ValueAsString () const
 
std::string ToString () const
 
bool IsSimple () const
 
bool IsVector () const
 
bool IsMap () const
 
bool IsReference () const
 

Private Attributes

PropertyName property_name_
 
PropertyValue property_value_
 

Detailed Description

Definition at line 20 of file Property.h.

Constructor & Destructor Documentation

◆ Property()

Gaudi::Parsers::Property::Property ( PropertyName  property_name,
PropertyValue  property_value 
)
inline

Definition at line 28 of file Property.h.

29  : property_name_( std::move( property_name ) ), property_value_( std::move( property_value ) ) {}

Member Function Documentation

◆ ClientName()

const std::string & Gaudi::Parsers::Property::ClientName ( ) const

Definition at line 21 of file Property.cpp.

21 { return property_name_.client(); }

◆ DefinedPosition()

const gp::Position & Gaudi::Parsers::Property::DefinedPosition ( ) const

Definition at line 19 of file Property.cpp.

19 { return property_name_.position(); }

◆ FullName()

std::string Gaudi::Parsers::Property::FullName ( ) const

Definition at line 23 of file Property.cpp.

23 { return property_name_.ToString(); }

◆ HasDefinedPosition()

bool Gaudi::Parsers::Property::HasDefinedPosition ( ) const
inline

Definition at line 44 of file Property.h.

44 { return DefinedPosition().Exists(); }

◆ HasValuePosition()

bool Gaudi::Parsers::Property::HasValuePosition ( ) const
inline

Definition at line 47 of file Property.h.

47 { return ValuePosition().Exists(); }

◆ IsMap()

bool Gaudi::Parsers::Property::IsMap ( ) const

Definition at line 28 of file Property.cpp.

28 { return property_value_.IsMap(); }

◆ IsReference()

bool Gaudi::Parsers::Property::IsReference ( ) const
inline

Definition at line 57 of file Property.h.

57 { return property_value_.IsReference(); }

◆ IsSimple()

bool Gaudi::Parsers::Property::IsSimple ( ) const

Definition at line 26 of file Property.cpp.

26 { return property_value_.IsSimple(); }

◆ IsVector()

bool Gaudi::Parsers::Property::IsVector ( ) const

Definition at line 27 of file Property.cpp.

27 { return property_value_.IsVector(); }

◆ NameInClient()

const std::string & Gaudi::Parsers::Property::NameInClient ( ) const

Definition at line 22 of file Property.cpp.

22 { return property_name_.property(); }

◆ operator+=()

Property& Gaudi::Parsers::Property::operator+= ( const PropertyValue value)
inline

Definition at line 34 of file Property.h.

34  {
35  property_value_ += value;
36  return *this;
37  }

◆ operator-=()

Property& Gaudi::Parsers::Property::operator-= ( const PropertyValue value)
inline

Definition at line 38 of file Property.h.

38  {
39  property_value_ -= value;
40  return *this;
41  }

◆ property_name()

const PropertyName& Gaudi::Parsers::Property::property_name ( ) const
inline

Definition at line 31 of file Property.h.

31 { return property_name_; }

◆ property_value()

PropertyValue& Gaudi::Parsers::Property::property_value ( )
inline

Definition at line 32 of file Property.h.

32 { return property_value_; }

◆ ToString()

std::string Gaudi::Parsers::Property::ToString ( ) const

Definition at line 25 of file Property.cpp.

25 { return FullName() + " = " + ValueAsString(); }

◆ ValueAsString()

std::string Gaudi::Parsers::Property::ValueAsString ( ) const

Definition at line 24 of file Property.cpp.

◆ ValuePosition()

const gp::Position & Gaudi::Parsers::Property::ValuePosition ( ) const

Definition at line 20 of file Property.cpp.

20 { return property_value_.position(); }

Member Data Documentation

◆ property_name_

PropertyName Gaudi::Parsers::Property::property_name_
private

Definition at line 60 of file Property.h.

◆ property_value_

PropertyValue Gaudi::Parsers::Property::property_value_
private

Definition at line 61 of file Property.h.


The documentation for this class was generated from the following files:
Gaudi::Parsers::Property::property_name
const PropertyName & property_name() const
Definition: Property.h:31
Gaudi::Parsers::PropertyValue::ToString
std::string ToString() const
Definition: PropertyValue.cpp:60
Gaudi::Parsers::Position::Exists
bool Exists() const
Definition: Position.h:27
Gaudi::Parsers::PropertyName::position
const Position & position() const
Definition: PropertyName.h:30
Gaudi::Parsers::Property::property_value
PropertyValue & property_value()
Definition: Property.h:32
Gaudi::Parsers::PropertyName::client
const std::string & client() const
Definition: PropertyName.h:28
Gaudi::Parsers::Utils::replaceEnvironments
std::string replaceEnvironments(std::string_view input)
Definition: Utils.cpp:17
Gaudi::Parsers::PropertyValue::IsVector
bool IsVector() const
Definition: PropertyValue.cpp:19
Gaudi::Parsers::PropertyName::ToString
std::string ToString() const
Definition: PropertyName.cpp:14
Gaudi::Parsers::Property::ValueAsString
std::string ValueAsString() const
Definition: Property.cpp:24
Gaudi::Parsers::Property::property_value_
PropertyValue property_value_
Definition: Property.h:61
Gaudi::Parsers::PropertyValue::IsMap
bool IsMap() const
Definition: PropertyValue.cpp:20
Gaudi::Parsers::PropertyValue::IsReference
bool IsReference() const
Definition: PropertyValue.h:50
Gaudi::Parsers::Property::DefinedPosition
const Position & DefinedPosition() const
Definition: Property.cpp:19
Gaudi::Parsers::PropertyValue::position
const Position & position() const
Definition: PropertyValue.h:34
Gaudi::Parsers::Property::property_name_
PropertyName property_name_
Definition: Property.h:60
Gaudi::Parsers::PropertyValue::IsSimple
bool IsSimple() const
Definition: PropertyValue.cpp:18
Gaudi::Parsers::Property::ValuePosition
const Position & ValuePosition() const
Definition: Property.cpp:20
Gaudi::Parsers::PropertyName::property
const std::string & property() const
Definition: PropertyName.h:29
Gaudi::Parsers::Property::FullName
std::string FullName() const
Definition: Property.cpp:23