ATLAS Offline Software
Loading...
Searching...
No Matches
CaloUtils::ToolConstant< T >::CProperty Class Reference

Internal wrapper for Gaudi::Property. More...

Inheritance diagram for CaloUtils::ToolConstant< T >::CProperty:
Collaboration diagram for CaloUtils::ToolConstant< T >::CProperty:

Public Member Functions

 CProperty (const std::string &name, const std::string &doc, ToolWithConstantsImpl &impl)
 Constructor, no default value.
 CProperty (const std::string &name, const std::string &doc, ToolWithConstantsImpl &impl, const T &deflt)
 Constructor, with default value.
virtual std::string toString () const override
 Return the value of this property as a string.
virtual void toStream (std::ostream &out) const override
 Print the value of this property to a stream.
virtual StatusCode fromString (const std::string &value) override
 Initialize this propery's value from a string.

Public Attributes

ToolWithConstantsImplm_impl
 Reference to implementation object.
bool m_setFromJO = false
 Has this constant been set from JO?
bool m_hasDefault = false
 Does this constant have a default?

Detailed Description

template<CxxUtils::FromArrayrep T>
class CaloUtils::ToolConstant< T >::CProperty

Internal wrapper for Gaudi::Property.

Handles the setFromJO flag and the Arrayrep conversion.

Definition at line 284 of file ToolWithConstants.h.

Constructor & Destructor Documentation

◆ CProperty() [1/2]

CaloUtils::ToolConstant< T >::CProperty::CProperty ( const std::string & name,
const std::string & doc,
ToolWithConstantsImpl & impl )

Constructor, no default value.

Parameters
nameConstant name.
docDocumentation string.
implInternal implementation object.

◆ CProperty() [2/2]

CaloUtils::ToolConstant< T >::CProperty::CProperty ( const std::string & name,
const std::string & doc,
ToolWithConstantsImpl & impl,
const T & deflt )

Constructor, with default value.

Parameters
nameConstant name.
docDocumentation string.
implInternal implementation object.
defltDefault value.

Member Function Documentation

◆ fromString()

virtual StatusCode CaloUtils::ToolConstant< T >::CProperty::fromString ( const std::string & value)
overridevirtual

Initialize this propery's value from a string.

Parameters
valueString from which to initialize.

◆ toStream()

virtual void CaloUtils::ToolConstant< T >::CProperty::toStream ( std::ostream & out) const
overridevirtual

Print the value of this property to a stream.

Parameters
outStream to which to print.

◆ toString()

virtual std::string CaloUtils::ToolConstant< T >::CProperty::toString ( ) const
overridevirtual

Return the value of this property as a string.

Member Data Documentation

◆ m_hasDefault

bool CaloUtils::ToolConstant< T >::CProperty::m_hasDefault = false

Does this constant have a default?

Definition at line 343 of file ToolWithConstants.h.

◆ m_impl

Reference to implementation object.

Definition at line 337 of file ToolWithConstants.h.

◆ m_setFromJO

bool CaloUtils::ToolConstant< T >::CProperty::m_setFromJO = false

Has this constant been set from JO?

Definition at line 340 of file ToolWithConstants.h.


The documentation for this class was generated from the following file: