The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
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 ) ) {}
const PropertyName & property_name() const
Definition Property.h:31
PropertyName property_name_
Definition Property.h:60
PropertyValue property_value_
Definition Property.h:61
PropertyValue & property_value()
Definition Property.h:32

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(); }
bool Exists() const
Definition Position.h:27
const Position & DefinedPosition() const
Definition Property.cpp:19

◆ HasValuePosition()

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

Definition at line 47 of file Property.h.

47{ return ValuePosition().Exists(); }
const Position & ValuePosition() const
Definition Property.cpp:20

◆ 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(); }
std::string ValueAsString() const
Definition Property.cpp:24
std::string FullName() const
Definition Property.cpp:23

◆ ValueAsString()

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

Definition at line 24 of file Property.cpp.

24{ return gpu::replaceEnvironments( property_value_.ToString() ); }
std::string replaceEnvironments(std::string_view input)
Definition Utils.cpp:17

◆ 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: