Property base class allowing Property* collections to be "homogeneous".
More...
#include <GaudiKernel/Property.h>
Property base class allowing Property* collections to be "homogeneous".
- Author
- Paul Maley
-
CTDay
-
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
Definition at line 38 of file Property.h.
| virtual Property::~Property |
( |
| ) |
|
|
virtualdefault |
constructor from the property name and the type
Definition at line 42 of file Property.cpp.
std::string m_documentation
const std::type_info * m_typeinfo
constructor from the property name and the type
Definition at line 55 of file Property.cpp.
std::string m_documentation
const std::type_info * m_typeinfo
| virtual bool Property::assign |
( |
const Property & |
source | ) |
|
|
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 >, DataObjIDCollProperty, PropertyList, DataObjIDProperty, and DataObjectHandleProperty.
| virtual Property* Property::clone |
( |
| ) |
const |
|
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 >, SimpleProperty< bool >, DataObjIDCollProperty, DataObjIDProperty, and DataObjectHandleProperty.
set new callback for reading
Definition at line 64 of file Property.cpp.
std::function< void(Property &)> m_readCallBack
template<class HT >
| Property& Property::declareReadHandler |
( |
void(HT::*)(Property &) |
MF, |
|
|
HT * |
instance |
|
) |
| |
|
inline |
Definition at line 75 of file Property.h.
virtual Property & declareReadHandler(std::function< void(Property &)> fun)
set new callback for reading
Property base class allowing Property* collections to be "homogeneous".
set new callback for update
Definition at line 72 of file Property.cpp.
std::function< void(Property &)> m_updateCallBack
template<class HT >
| Property& Property::declareUpdateHandler |
( |
void(HT::*)(Property &) |
MF, |
|
|
HT * |
instance |
|
) |
| |
|
inline |
Definition at line 79 of file Property.h.
virtual Property & declareUpdateHandler(std::function< void(Property &)> fun)
set new callback for update
Property base class allowing Property* collections to be "homogeneous".
property documentation
Definition at line 47 of file Property.h.
std::string m_documentation
the printout of the property value
Definition at line 111 of file Property.cpp.
112 {
return stream <<
" '" <<
name() <<
"':" <<
toString() ; }
virtual std::string toString() const =0
value -> string
const std::string & name() const
property name
string -> value
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, DataObjIDCollProperty, DataObjIDProperty, and DataObjectHandleProperty.
| virtual bool Property::load |
( |
Property & |
dest | ) |
const |
|
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 >, DataObjIDCollProperty, PropertyList, DataObjIDProperty, and DataObjectHandleProperty.
get a reference to the readCallBack
Definition at line 65 of file Property.h.
std::function< void(Property &)> m_readCallBack
| void Property::setDocumentation |
( |
std::string |
documentation | ) |
|
|
inline |
set the documentation string
Definition at line 94 of file Property.h.
std::string m_documentation
set the new value for the property name
Definition at line 92 of file Property.h.
value -> stream
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, DataObjIDCollProperty, DataObjIDProperty, and DataObjectHandleProperty.
value -> string
Implemented in GaudiHandleArrayProperty, GaudiHandleProperty, PropertyWithValue< TYPE >, PropertyWithValue< double >, PropertyWithValue< std::string >, PropertyWithValue< std::vector< std::string > >, PropertyWithValue< int >, PropertyWithValue< unsigned int >, PropertyWithValue< bool >, DataObjIDCollProperty, DataObjIDProperty, and DataObjectHandleProperty.
property type
Definition at line 51 of file Property.h.
const std::type_info * m_typeinfo
property type-info
Definition at line 49 of file Property.h.
const std::type_info * m_typeinfo
get a reference to the updateCallBack
Definition at line 67 of file Property.h.
std::function< void(Property &)> m_updateCallBack
| void Property::useReadHandler |
( |
| ) |
const |
|
virtual |
use the call-back function at reading
Definition at line 80 of file Property.cpp.
86 theCallBack( const_cast<Property&>(*
this) ) ;
std::function< void(Property &)> m_readCallBack
| bool Property::useUpdateHandler |
( |
| ) |
|
|
virtual |
use the call-back function at update
Definition at line 92 of file Property.cpp.
100 theCallBack( *
this ) ;
std::function< void(Property &)> m_updateCallBack
The documentation for this class was generated from the following files: