![]() |
The Gaudi Framework
v36r9 (fd2bdac3)
|
DataHandleProperty.h GaudiKernel/DataHandleProperty.h. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/DataHandleProperty.h>


Public Member Functions | |
| DataHandleProperty (const std::string &name, Gaudi::DataHandle &ref) | |
| DataHandleProperty & | operator= (const Gaudi::DataHandle &value) |
| DataHandleProperty * | clone () const override |
| clones the current property More... | |
| bool | load (Gaudi::Details::PropertyBase &destination) const override |
| export the property value to the destination More... | |
| bool | assign (const Gaudi::Details::PropertyBase &source) override |
| import the property value form the source More... | |
| std::string | toString () const override |
| value -> string More... | |
| void | toStream (std::ostream &out) const override |
| value -> stream More... | |
| StatusCode | fromString (const std::string &s) override |
| string -> value More... | |
| const Gaudi::DataHandle & | value () const |
| bool | setValue (const Gaudi::DataHandle &value) |
Public Member Functions inherited from PropertyWithHandlers<> | |
| PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun) override |
| set new callback for reading More... | |
| PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun) override |
| set new callback for update More... | |
| const std::function< void(PropertyBase &)> | readCallBack () const override |
| get a reference to the readCallBack More... | |
| const std::function< void(PropertyBase &)> | updateCallBack () const override |
| get a reference to the updateCallBack More... | |
| void | useReadHandler () const |
| use the call-back function at reading, if available More... | |
| bool | useUpdateHandler () override |
| use the call-back function at update, if available More... | |
Public Member Functions inherited from Gaudi::Details::PropertyBase | |
| const std::string | name () const |
| property name More... | |
| std::string | documentation () const |
| property documentation More... | |
| std::string | semantics () const |
| property semantics More... | |
| const std::type_info * | type_info () const |
| property type-info More... | |
| std::string | type () const |
| property type More... | |
| virtual PropertyBase & | declareReadHandler (std::function< void(PropertyBase &)> fun)=0 |
| set new callback for reading More... | |
| virtual PropertyBase & | declareUpdateHandler (std::function< void(PropertyBase &)> fun)=0 |
| set new callback for update More... | |
| virtual const std::function< void(PropertyBase &)> | readCallBack () const =0 |
| get a reference to the readCallBack More... | |
| virtual const std::function< void(PropertyBase &)> | updateCallBack () const =0 |
| get a reference to the updateCallBack More... | |
| template<class HT > | |
| PropertyBase & | declareReadHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| template<class HT > | |
| PropertyBase & | declareUpdateHandler (void(HT::*MF)(PropertyBase &), HT *instance) |
| virtual | ~PropertyBase () |
| virtual destructor More... | |
| void | setName (std::string value) |
| set the new value for the property name More... | |
| void | setDocumentation (std::string value) |
| set the documentation string More... | |
| void | setSemantics (std::string value) |
| set the semantics string More... | |
| virtual std::ostream & | fillStream (std::ostream &) const |
| the printout of the property value More... | |
| void | setOwnerType (const std::type_info &ownerType) |
| set the type of the owner class (used for documentation) More... | |
| template<class OWNER > | |
| void | setOwnerType () |
| set the type of the owner class (used for documentation) More... | |
| const std::type_info * | ownerType () const |
| get the type of the owner class (used for documentation) More... | |
| std::string | ownerTypeName () const |
| get the string for the type of the owner class (used for documentation) More... | |
Protected Attributes | |
| Gaudi::DataHandle * | m_pValue = nullptr |
| Pointer to the real property. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Gaudi::Details::PropertyBase | |
| PropertyBase (const std::type_info &type, std::string name="", std::string doc="", std::string semantics="") | |
| constructor from the property name and the type More... | |
| PropertyBase (std::string name, const std::type_info &type) | |
| constructor from the property name and the type More... | |
| PropertyBase (const PropertyBase &)=default | |
| copy constructor More... | |
| PropertyBase & | operator= (const PropertyBase &)=default |
| assignment operator More... | |
DataHandleProperty.h GaudiKernel/DataHandleProperty.h.
Helper class to manage DataHandles and DataHandleColls as properties
Definition at line 34 of file DataHandleProperty.h.
| DataHandleProperty::DataHandleProperty | ( | const std::string & | name, |
| Gaudi::DataHandle & | ref | ||
| ) |
Definition at line 36 of file DataHandleProperty.cpp.
|
overridevirtual |
import the property value form the source
Implements Gaudi::Details::PropertyBase.
Definition at line 83 of file DataHandleProperty.cpp.
|
overridevirtual |
clones the current property
Implements Gaudi::Details::PropertyBase.
Definition at line 75 of file DataHandleProperty.cpp.
|
overridevirtual |
string -> value
Implements Gaudi::Details::PropertyBase.
Definition at line 41 of file DataHandleProperty.cpp.
|
overridevirtual |
export the property value to the destination
Implements Gaudi::Details::PropertyBase.
Definition at line 79 of file DataHandleProperty.cpp.
| DataHandleProperty & DataHandleProperty::operator= | ( | const Gaudi::DataHandle & | value | ) |
Definition at line 68 of file DataHandleProperty.cpp.
| bool DataHandleProperty::setValue | ( | const Gaudi::DataHandle & | value | ) |
Definition at line 48 of file DataHandleProperty.cpp.
|
overridevirtual |
value -> stream
Implements Gaudi::Details::PropertyBase.
Definition at line 61 of file DataHandleProperty.cpp.
|
overridevirtual |
value -> string
Implements Gaudi::Details::PropertyBase.
Definition at line 55 of file DataHandleProperty.cpp.
| const Gaudi::DataHandle & DataHandleProperty::value | ( | ) | const |
Definition at line 89 of file DataHandleProperty.cpp.
|
protected |
Pointer to the real property.
Reference would be better, but Reflex does not support references yet
Definition at line 52 of file DataHandleProperty.h.