![]() |
The Gaudi Framework
v27r1
|
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h. More...
#include <GaudiKernel/DataObjectHandleProperty.h>
Public Member Functions | |
DataObjectHandleProperty (const std::string &name, DataObjectHandleBase &ref) | |
DataObjectHandleProperty & | operator= (const DataObjectHandleBase &value) |
virtual | ~DataObjectHandleProperty () |
virtual DataObjectHandleProperty * | clone () const |
clone: "virtual constructor" More... | |
virtual bool | load (Property &destination) const |
export the property value to the destination More... | |
virtual bool | assign (const Property &source) |
import the property value form the source More... | |
virtual std::string | toString () const |
value -> string More... | |
virtual void | toStream (std::ostream &out) const |
value -> stream More... | |
virtual StatusCode | fromString (const std::string &s) |
string -> value More... | |
const DataObjectHandleBase & | value () const |
bool | setValue (const DataObjectHandleBase &value) |
const std::string | pythonRepr () const |
![]() | |
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 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... | |
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... | |
Private Attributes | |
DataObjectHandleBase * | m_pValue |
Pointer to the real property. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
std::function< void(Property &)> | m_readCallBack |
std::function< void(Property &)> | m_updateCallBack |
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
Helper class to manage DataObjectHandles and DataObjectHandleColls as properties
Definition at line 23 of file DataObjectHandleProperty.h.
DataObjectHandleProperty::DataObjectHandleProperty | ( | const std::string & | name, |
DataObjectHandleBase & | ref | ||
) |
Definition at line 106 of file DataObjectHandleProperty.cpp.
|
virtual |
Definition at line 114 of file DataObjectHandleProperty.cpp.
|
virtual |
import the property value form the source
Implements Property.
Definition at line 194 of file DataObjectHandleProperty.cpp.
|
virtual |
clone: "virtual constructor"
Implements Property.
Definition at line 178 of file DataObjectHandleProperty.cpp.
|
virtual |
string -> value
Implements Property.
Definition at line 120 of file DataObjectHandleProperty.cpp.
|
virtual |
export the property value to the destination
Implements Property.
Definition at line 186 of file DataObjectHandleProperty.cpp.
DataObjectHandleProperty & DataObjectHandleProperty::operator= | ( | const DataObjectHandleBase & | value | ) |
Definition at line 169 of file DataObjectHandleProperty.cpp.
const std::string DataObjectHandleProperty::pythonRepr | ( | ) | const |
Definition at line 132 of file DataObjectHandleProperty.cpp.
bool DataObjectHandleProperty::setValue | ( | const DataObjectHandleBase & | value | ) |
Definition at line 141 of file DataObjectHandleProperty.cpp.
|
virtual |
value -> stream
Implements Property.
Definition at line 160 of file DataObjectHandleProperty.cpp.
|
virtual |
value -> string
Implements Property.
Definition at line 150 of file DataObjectHandleProperty.cpp.
const DataObjectHandleBase & DataObjectHandleProperty::value | ( | ) | const |
Definition at line 202 of file DataObjectHandleProperty.cpp.
|
private |
Pointer to the real property.
Reference would be better, but Reflex does not support references yet
Definition at line 45 of file DataObjectHandleProperty.h.