![]() |
The Gaudi Framework
v27r0
|
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 std::function< void(Property &)> & | readCallBack () const |
| get a reference to the readCallBack More... | |
| const std::function< void(Property &)> & | updateCallBack () const |
| get a reference to the updateCallBack More... | |
| virtual Property & | declareReadHandler (std::function< void(Property &)> fun) |
| set new callback for reading More... | |
| virtual Property & | declareUpdateHandler (std::function< void(Property &)> fun) |
| set new callback for update More... | |
| template<class HT > | |
| Property & | declareReadHandler (void(HT::*MF)(Property &), HT *instance) |
| template<class HT > | |
| Property & | 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 ()=default |
| virtual destructor More... | |
| virtual Property * | clone () const =0 |
| clone: "virtual constructor" More... | |
| void | setName (std::string value) |
| set the new value for the property name More... | |
| void | setDocumentation (std::string documentation) |
| set the documentation string More... | |
| virtual std::ostream & | fillStream (std::ostream &) const |
| the printout of the property value More... | |
| 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 std::function< void(Property &)> & | readCallBack () const |
| get a reference to the readCallBack More... | |
| const std::function< void(Property &)> & | updateCallBack () const |
| get a reference to the updateCallBack More... | |
| virtual Property & | declareReadHandler (std::function< void(Property &)> fun) |
| set new callback for reading More... | |
| virtual Property & | declareUpdateHandler (std::function< void(Property &)> fun) |
| set new callback for update More... | |
| template<class HT > | |
| Property & | declareReadHandler (void(HT::*MF)(Property &), HT *instance) |
| template<class HT > | |
| Property & | 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 ()=default |
| virtual destructor More... | |
| virtual Property * | clone () const =0 |
| clone: "virtual constructor" More... | |
| void | setName (std::string value) |
| set the new value for the property name More... | |
| void | setDocumentation (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, std::string name="") | |
| constructor from the property name and the type More... | |
| Property (std::string name, const std::type_info &type) | |
| constructor from the property name and the type More... | |
| Property (const Property &)=default | |
| copy constructor More... | |
| Property & | operator= (const Property &)=default |
| assignment operator More... | |
| Property (const std::type_info &type, std::string name="") | |
| constructor from the property name and the type More... | |
| Property (std::string name, const std::type_info &type) | |
| constructor from the property name and the type More... | |
| Property (const Property &)=default | |
| copy constructor More... | |
| Property & | operator= (const Property &)=default |
| assignment operator More... | |
Protected Attributes | |
| std::function< void(Property &)> | m_readCallBack |
| std::function< void(Property &)> | m_updateCallBack |
Private Member Functions | |
| Property () | |
| 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 38 of file Property.h.
|
private |
|
virtualdefault |
virtual destructor
|
protected |
|
protected |
|
protecteddefault |
copy constructor
|
private |
|
virtualdefault |
virtual destructor
|
protected |
constructor from the property name and the type
|
protected |
constructor from the property name and the type
|
protecteddefault |
copy constructor
|
pure virtual |
import the property value form the source
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, PropertyList, PropertyList, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
import the property value form the source
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, PropertyList, PropertyList, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
clone: "virtual constructor"
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, SimplePropertyRef< TYPE, VERIFIER >, SimplePropertyRef< TYPE, VERIFIER >, SimpleProperty< TYPE, VERIFIER >, SimpleProperty< TYPE, VERIFIER >, SimpleProperty< double >, SimpleProperty< double >, SimpleProperty< std::string >, SimpleProperty< std::string >, SimpleProperty< std::vector< std::string > >, SimpleProperty< std::vector< std::string > >, SimpleProperty< int >, SimpleProperty< int >, SimpleProperty< unsigned int >, SimpleProperty< unsigned int >, SimpleProperty< bool >, SimpleProperty< bool >, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
clone: "virtual constructor"
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, SimplePropertyRef< TYPE, VERIFIER >, SimplePropertyRef< TYPE, VERIFIER >, SimpleProperty< TYPE, VERIFIER >, SimpleProperty< TYPE, VERIFIER >, SimpleProperty< double >, SimpleProperty< double >, SimpleProperty< std::string >, SimpleProperty< std::string >, SimpleProperty< std::vector< std::string > >, SimpleProperty< std::vector< std::string > >, SimpleProperty< int >, SimpleProperty< int >, SimpleProperty< unsigned int >, SimpleProperty< unsigned int >, SimpleProperty< bool >, SimpleProperty< bool >, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
set new callback for reading
|
inline |
Definition at line 75 of file Property.h.
|
inline |
Definition at line 75 of file Property.h.
set new callback for update
set new callback for update
Definition at line 72 of file Property.cpp.
|
inline |
Definition at line 79 of file Property.h.
|
inline |
Definition at line 79 of file Property.h.
|
inline |
|
inline |
|
virtual |
|
virtual |
the printout of the property value
|
pure virtual |
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
export the property value to the destination
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, PropertyList, PropertyList, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
export the property value to the destination
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, PropertyList, PropertyList, DataObjIDProperty, and DataObjIDProperty.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set the documentation string
Definition at line 94 of file Property.h.
|
inline |
set the documentation string
Definition at line 94 of file Property.h.
|
inline |
|
inline |
|
pure virtual |
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
pure virtual |
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, DataObjectDescriptorCollectionProperty, DataObjectDescriptorCollectionProperty, PropertyWithValue< TYPE >, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, PropertyWithValue< bool >, DataObjectDescriptorProperty, DataObjectDescriptorProperty, DataObjIDCollProperty, DataObjIDCollProperty, DataHandleProperty, DataHandleProperty, DataObjIDProperty, and DataObjIDProperty.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
get a reference to the updateCallBack
Definition at line 67 of file Property.h.
|
inline |
get a reference to the updateCallBack
Definition at line 67 of file Property.h.
|
virtual |
use the call-back function at reading
|
virtual |
|
virtual |
use the call-back function at update
Definition at line 92 of file Property.cpp.
|
virtual |
use the call-back function at update
|
private |
Definition at line 115 of file Property.h.
|
private |
Definition at line 113 of file Property.h.
|
mutableprotected |
Definition at line 120 of file Property.h.
|
private |
Definition at line 117 of file Property.h.
|
protected |
Definition at line 122 of file Property.h.