![]() |
The Gaudi Framework
v26r3
|
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... | |
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... | |
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 () | |
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 |
|
virtual |
virtual destructor
|
protected |
constructor from the property name and the type
|
protected |
constructor from the property name and the type
|
protected |
copy constructor
|
private |
|
pure virtual |
import the property value form the source
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, PropertyList, and PropertyList.
|
pure virtual |
import the property value form the source
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, PropertyList, and PropertyList.
|
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 >, and SimpleProperty< bool >.
|
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 >, and SimpleProperty< bool >.
|
virtual |
set new callback for reading
|
virtual |
void Property::declareReadHandler | ( | void(HT::*)(Property &) | MF, |
HT * | instance | ||
) |
|
inline |
Definition at line 130 of file Property.h.
|
virtual |
set new callback for update
|
virtual |
void Property::declareUpdateHandler | ( | void(HT::*)(Property &) | MF, |
HT * | instance | ||
) |
|
inline |
Definition at line 135 of file Property.h.
|
inline |
|
inline |
|
virtual |
|
virtual |
the printout of the property value
|
pure virtual |
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
pure virtual |
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
pure virtual |
export the property value to the destination
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, PropertyList, and PropertyList.
|
pure virtual |
export the property value to the destination
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, PropertyList, and PropertyList.
|
inline |
|
inline |
const PropertyCallbackFunctor* Property::readCallBack | ( | ) | const |
Call-back functor at reading: the functor is owned by property!
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 |
set the documentation string
Definition at line 92 of file Property.h.
|
inline |
|
inline |
|
pure virtual |
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
pure virtual |
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
pure virtual |
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
pure virtual |
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleArrayProperty, GaudiHandleProperty, GaudiHandleProperty, 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 >, and PropertyWithValue< bool >.
|
inline |
|
inline |
|
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.
const PropertyCallbackFunctor* Property::updateCallBack | ( | ) | const |
Call-back functor for update: the functor is owned by property!
|
virtual |
use the call-back function at reading
|
virtual |
use the call-back function at reading
Definition at line 150 of file Property.cpp.
|
virtual |
|
virtual |
use the call-back function at update
|
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.