![]() |
The Gaudi Framework
v25r3
|
Property base class allowing Property* collections to be "homogeneous". More...
#include <GaudiKernel/Property.h>


Public Member Functions | |
| 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... | |
| virtual bool | load (Property &dest) const =0 |
| export the property value to the destination More... | |
| virtual bool | assign (const Property &source)=0 |
| import the property value form the source More... | |
| virtual std::string | toString () const =0 |
| value -> string More... | |
| virtual void | toStream (std::ostream &out) const =0 |
| value -> stream More... | |
| virtual StatusCode | fromString (const std::string &value)=0 |
| string -> value 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 | |
| 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... | |
Protected Attributes | |
| PropertyCallbackFunctor * | m_readCallBack |
| PropertyCallbackFunctor * | m_updateCallBack |
Private Member Functions | |
| Property () | |
Private Attributes | |
| std::string | m_name |
| std::string | m_documentation |
| const std::type_info * | m_typeinfo |
Property base class allowing Property* collections to be "homogeneous".
Definition at line 43 of file Property.h.
|
virtual |
|
protected |
|
protected |
|
protected |
|
private |
|
pure virtual |
import the property value form the source
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, and PropertyList.
|
pure virtual |
clone: "virtual constructor"
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, SimplePropertyRef< TYPE, VERIFIER >, SimpleProperty< TYPE, VERIFIER >, SimpleProperty< double >, SimpleProperty< std::string >, SimpleProperty< std::vector< std::string > >, SimpleProperty< int >, SimpleProperty< unsigned int >, and SimpleProperty< bool >.
|
virtual |
|
inline |
Definition at line 130 of file Property.h.
|
virtual |
|
inline |
Definition at line 135 of file Property.h.
|
inline |
|
virtual |
|
pure virtual |
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, and PropertyWithValue< bool >.
|
pure virtual |
export the property value to the destination
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, and PropertyList.
|
inline |
| const PropertyCallbackFunctor * Property::readCallBack | ( | ) | const |
Call-back functor at reading: the functor is owned by property!
Definition at line 122 of file Property.cpp.
|
inline |
set the documentation string
Definition at line 92 of file Property.h.
|
inline |
|
pure virtual |
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, and PropertyWithValue< bool >.
|
pure virtual |
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, and PropertyWithValue< bool >.
|
inline |
|
inline |
| const PropertyCallbackFunctor * Property::updateCallBack | ( | ) | const |
Call-back functor for update: the functor is owned by property!
Definition at line 127 of file Property.cpp.
|
virtual |
use the call-back function at reading
Definition at line 150 of file Property.cpp.
|
virtual |
|
private |
Definition at line 116 of file Property.h.
|
private |
Definition at line 114 of file Property.h.
|
mutableprotected |
Definition at line 121 of file Property.h.
|
private |
Definition at line 118 of file Property.h.
|
protected |
Definition at line 123 of file Property.h.