ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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. More...
 
 CProperty (const std::string &name, const std::string &doc, ToolWithConstantsImpl &impl, const T &deflt)
 Constructor, with default value. More...
 
virtual std::string toString () const override
 Return the value of this property as a string. More...
 
virtual void toStream (std::ostream &out) const override
 Print the value of this property to a stream. More...
 
virtual StatusCode fromString (const std::string &value) override
 Initialize this propery's value from a string. More...
 

Public Attributes

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

Detailed Description

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

Internal wrapper for Gaudi::Property.

Handles the setFromJO flag and the Arrayrep conversion.

Definition at line 286 of file ToolWithConstants.h.

Constructor & Destructor Documentation

◆ CProperty() [1/2]

template<class T >
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]

template<class T >
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()

template<class T >
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()

template<class T >
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()

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

Return the value of this property as a string.

Member Data Documentation

◆ m_hasDefault

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

Does this constant have a default?

Definition at line 345 of file ToolWithConstants.h.

◆ m_impl

template<class T >
ToolWithConstantsImpl& CaloUtils::ToolConstant< T >::CProperty::m_impl

Reference to implementation object.

Definition at line 339 of file ToolWithConstants.h.

◆ m_setFromJO

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

Has this constant been set from JO?

Definition at line 342 of file ToolWithConstants.h.


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