![]() |
The Gaudi Framework
v26r0
|
Helper intermediate class which represent partly implemented property with value of concrete type. More...
#include <GaudiKernel/Property.h>


Public Types | |
| typedef Gaudi::Utils::PropertyTypeTraits < TYPE > | Traits |
| the type-traits for properties More... | |
| typedef Traits::PVal | PVal |
| the actual storage type More... | |
Public Member Functions | |
| operator const TYPE & () const | |
| implicit conversion to the type More... | |
| const TYPE & | value () const |
| explicit conversion More... | |
| virtual bool | setValue (const TYPE &value)=0 |
| NB: abstract : to be implemented when verifier is available. More... | |
| virtual bool | assign (const Property &source) |
| get the value from another property More... | |
| virtual bool | load (Property &dest) const |
| set value for another property More... | |
| virtual StatusCode | fromString (const std::string &s) |
| string -> value More... | |
| virtual std::string | toString () const |
| value -> string More... | |
| virtual void | toStream (std::ostream &out) const |
| value -> stream More... | |
| template<class OTHER > | |
| PropertyWithValue< TYPE > & | operator= (const PropertyWithValue< OTHER > &right) |
Public Member Functions inherited from Property | |
| const std::string & | name () const |
| property name More... | |
| const std::string & | documentation () const |
| property documentation More... | |
| const std::type_info * | type_info () const |
| property type-info More... | |
| std::string | type () const |
| property type More... | |
| const PropertyCallbackFunctor * | readCallBack () const |
| Call-back functor at reading: the functor is owned by property! More... | |
| const PropertyCallbackFunctor * | updateCallBack () const |
| Call-back functor for update: the functor is owned by property! More... | |
| virtual void | declareReadHandler (PropertyCallbackFunctor *pf) |
| set new callback for reading More... | |
| virtual void | declareUpdateHandler (PropertyCallbackFunctor *pf) |
| set new callback for update More... | |
| template<class HT > | |
| void | declareReadHandler (void(HT::*MF)(Property &), HT *instance) |
| template<class HT > | |
| void | declareUpdateHandler (void(HT::*MF)(Property &), HT *instance) |
| virtual void | useReadHandler () const |
| use the call-back function at reading More... | |
| virtual bool | useUpdateHandler () |
| use the call-back function at update More... | |
| virtual | ~Property () |
| virtual destructor More... | |
| virtual Property * | clone () const =0 |
| clone: "virtual constructor" More... | |
| void | setName (const std::string &value) |
| set the new value for the property name More... | |
| void | setDocumentation (const std::string &documentation) |
| set the documentation string More... | |
| virtual std::ostream & | fillStream (std::ostream &) const |
| the printout of the property value More... | |
Protected Member Functions | |
| PropertyWithValue (const std::string &name, PVal value, const bool owner) | |
| the constructor with property name and value More... | |
| PropertyWithValue (const PropertyWithValue &rhs) | |
| copy constructor (don't let the compiler generate a buggy one) More... | |
| template<class OTHER > | |
| PropertyWithValue (const PropertyWithValue< OTHER > &right) | |
| copy constructor from any other type More... | |
| virtual | ~PropertyWithValue () |
| virtual destructor More... | |
| PropertyWithValue & | operator= (const TYPE &value) |
| assignment operator More... | |
| PropertyWithValue & | operator= (const PropertyWithValue &rhs) |
| template<class OTHER > | |
| PropertyWithValue & | operator= (const PropertyWithValue< OTHER > &right) |
| void | i_set (const TYPE &value) |
| set the value More... | |
| PVal | i_get () const |
| get the value More... | |
Protected Member Functions inherited from Property | |
| Property (const std::type_info &type, const std::string &name="") | |
| constructor from the property name and the type More... | |
| Property (const std::string &name, const std::type_info &type) | |
| constructor from the property name and the type More... | |
| Property (const Property &right) | |
| copy constructor More... | |
| Property & | operator= (const Property &right) |
| assignment operator More... | |
Private Attributes | |
| PVal | m_value |
| the actual property value More... | |
| bool | m_own |
| owner of the storage More... | |
Additional Inherited Members | |
Protected Attributes inherited from Property | |
| PropertyCallbackFunctor * | m_readCallBack |
| PropertyCallbackFunctor * | m_updateCallBack |
Helper intermediate class which represent partly implemented property with value of concrete type.
Definition at line 147 of file Property.h.
| typedef Traits::PVal PropertyWithValue< TYPE >::PVal |
the actual storage type
Definition at line 154 of file Property.h.
| typedef Gaudi::Utils::PropertyTypeTraits<TYPE> PropertyWithValue< TYPE >::Traits |
the type-traits for properties
Definition at line 152 of file Property.h.
|
inlineprotected |
|
inlineprotected |
copy constructor (don't let the compiler generate a buggy one)
Definition at line 238 of file Property.h.
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlinevirtual |
get the value from another property
implementation of Property::assign
Implements Property.
Definition at line 283 of file Property.h.
|
inlinevirtual |
string -> value
Implementation of PropertyWithValue::fromString.
Implements Property.
Definition at line 327 of file Property.h.
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
set value for another property
implementation of Property::load
Implements Property.
Definition at line 297 of file Property.h.
|
inline |
|
inlineprotected |
assignment operator
Definition at line 272 of file Property.h.
|
protected |
Definition at line 362 of file Property.h.
|
protected |
| PropertyWithValue<TYPE>& PropertyWithValue< TYPE >::operator= | ( | const PropertyWithValue< OTHER > & | right | ) |
Definition at line 376 of file Property.h.
|
pure virtual |
NB: abstract : to be implemented when verifier is available.
Implemented in PropertyWithVerifier< TYPE, VERIFIER >, PropertyWithVerifier< bool, VERIFIER >, PropertyWithVerifier< unsigned int, VERIFIER >, PropertyWithVerifier< double, VERIFIER >, PropertyWithVerifier< std::vector< std::string >, VERIFIER >, PropertyWithVerifier< int, VERIFIER >, and PropertyWithVerifier< std::string, VERIFIER >.
|
inlinevirtual |
value -> stream
Implementation of PropertyWithValue::toStream.
Implements Property.
Definition at line 317 of file Property.h.
|
inlinevirtual |
value -> string
Implementation of PropertyWithValue::toString.
Implements Property.
Definition at line 307 of file Property.h.
|
inline |
explicit conversion
get the access to the storage
Definition at line 355 of file Property.h.
|
private |
owner of the storage
Definition at line 216 of file Property.h.
|
private |
the actual property value
Definition at line 214 of file Property.h.