![]() |
The Gaudi Framework
v27r0
|
Helper intermediate class which represent partly implemented property with value of concrete type. More...
Public Types | |
typedef Gaudi::Utils::PropertyTypeTraits< TYPE > | Traits |
the type-traits for properties More... | |
typedef Traits::PVal | PVal |
the actual storage type More... | |
typedef Gaudi::Utils::PropertyTypeTraits< TYPE > | Traits |
the type-traits for properties More... | |
typedef Traits::PVal | PVal |
the actual storage type More... | |
Public Member Functions | |
operator const TYPE & () const | |
implicit conversion to the type More... | |
const TYPE & | value () const |
explicit conversion More... | |
virtual bool | setValue (const TYPE &value)=0 |
NB: abstract : to be implemented when verifier is available. More... | |
bool | assign (const Property &source) override |
get the value from another property More... | |
bool | load (Property &dest) const override |
set value for another property More... | |
StatusCode | fromString (const std::string &s) override |
string -> value More... | |
std::string | toString () const override |
value -> string More... | |
void | toStream (std::ostream &out) const override |
value -> stream More... | |
operator const TYPE & () const | |
implicit conversion to the type More... | |
const TYPE & | value () const |
explicit conversion More... | |
virtual bool | setValue (const TYPE &value)=0 |
NB: abstract : to be implemented when verifier is available. More... | |
bool | assign (const Property &source) override |
get the value from another property More... | |
bool | load (Property &dest) const override |
set value for another property More... | |
StatusCode | fromString (const std::string &s) override |
string -> value More... | |
std::string | toString () const override |
value -> string More... | |
void | toStream (std::ostream &out) const override |
value -> stream More... | |
template<class OTHER > | |
PropertyWithValue< TYPE > & | operator= (const PropertyWithValue< OTHER > &right) |
![]() | |
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... | |
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... | |
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 | |
PropertyWithValue (std::string name, PVal value, const bool owner) | |
the constructor with property name and value More... | |
PropertyWithValue (const PropertyWithValue &rhs) | |
copy constructor (don't let the compiler generate a buggy one) More... | |
template<class OTHER > | |
PropertyWithValue (const PropertyWithValue< OTHER > &right) | |
copy constructor from any other type More... | |
~PropertyWithValue () override | |
virtual destructor More... | |
PropertyWithValue & | operator= (const TYPE &value) |
assignment operator More... | |
PropertyWithValue & | operator= (const PropertyWithValue &rhs) |
template<class OTHER > | |
PropertyWithValue & | operator= (const PropertyWithValue< OTHER > &right) |
void | i_set (const TYPE &value) |
set the value More... | |
PVal | i_get () const |
get the value More... | |
PropertyWithValue (std::string name, PVal value, const bool owner) | |
the constructor with property name and value More... | |
PropertyWithValue (const PropertyWithValue &rhs) | |
copy constructor (don't let the compiler generate a buggy one) More... | |
template<class OTHER > | |
PropertyWithValue (const PropertyWithValue< OTHER > &right) | |
copy constructor from any other type More... | |
~PropertyWithValue () override | |
virtual destructor More... | |
PropertyWithValue & | operator= (const TYPE &value) |
assignment operator More... | |
PropertyWithValue & | operator= (const PropertyWithValue &rhs) |
template<class OTHER > | |
PropertyWithValue & | operator= (const PropertyWithValue< OTHER > &right) |
void | i_set (const TYPE &value) |
set the value More... | |
PVal | i_get () const |
get the value 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... | |
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... | |
Private Attributes | |
PVal | m_value |
the actual property value More... | |
bool | m_own |
owner of the storage More... | |
Additional Inherited Members | |
![]() | |
std::function< void(Property &)> | m_readCallBack |
std::function< void(Property &)> | m_updateCallBack |
Helper intermediate class which represent partly implemented property with value of concrete type.
Definition at line 134 of file Property.h.
typedef Traits::PVal PropertyWithValue< TYPE >::PVal |
the actual storage type
Definition at line 141 of file Property.h.
typedef Traits::PVal PropertyWithValue< TYPE >::PVal |
the actual storage type
Definition at line 141 of file Property.h.
typedef Gaudi::Utils::PropertyTypeTraits<TYPE> PropertyWithValue< TYPE >::Traits |
the type-traits for properties
Definition at line 139 of file Property.h.
typedef Gaudi::Utils::PropertyTypeTraits<TYPE> PropertyWithValue< TYPE >::Traits |
the type-traits for properties
Definition at line 139 of file Property.h.
|
inlineprotected |
|
inlineprotected |
copy constructor (don't let the compiler generate a buggy one)
Definition at line 225 of file Property.h.
|
inlineprotected |
|
inlineoverrideprotected |
|
inlineprotected |
the constructor with property name and value
|
inlineprotected |
copy constructor (don't let the compiler generate a buggy one)
|
inlineprotected |
copy constructor from any other type
|
overrideprotected |
virtual destructor
|
inlineoverridevirtual |
get the value from another property
implementation of Property::assign
Implements Property.
Definition at line 269 of file Property.h.
|
overridevirtual |
get the value from another property
Implements Property.
|
inlineoverridevirtual |
string -> value
Implementation of PropertyWithValue::fromString.
Implements Property.
Definition at line 313 of file Property.h.
|
overridevirtual |
string -> value
Implements Property.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
set value for another property
implementation of Property::load
Implements Property.
Definition at line 283 of file Property.h.
|
overridevirtual |
set value for another property
Implements Property.
|
inline |
|
inline |
|
inlineprotected |
assignment operator
Definition at line 258 of file Property.h.
|
protected |
assignment operator
|
protected |
Definition at line 348 of file Property.h.
|
protected |
|
protected |
|
protected |
PropertyWithValue< TYPE > & PropertyWithValue< TYPE >::operator= | ( | const PropertyWithValue< OTHER > & | right | ) |
Definition at line 362 of file Property.h.
|
pure virtual |
NB: abstract : to be implemented when verifier is available.
Implemented in PropertyWithVerifier< TYPE, VERIFIER >, PropertyWithVerifier< TYPE, VERIFIER >, PropertyWithVerifier< int, BoundedVerifier< int > >, PropertyWithVerifier< int, BoundedVerifier< int > >, PropertyWithVerifier< double, BoundedVerifier< double > >, PropertyWithVerifier< double, BoundedVerifier< double > >, PropertyWithVerifier< unsigned int, BoundedVerifier< unsigned int > >, PropertyWithVerifier< unsigned int, BoundedVerifier< unsigned int > >, PropertyWithVerifier< bool, BoundedVerifier< bool > >, PropertyWithVerifier< bool, BoundedVerifier< bool > >, PropertyWithVerifier< std::string, BoundedVerifier< std::string > >, PropertyWithVerifier< std::string, BoundedVerifier< std::string > >, PropertyWithVerifier< std::vector< std::string >, BoundedVerifier< std::vector< std::string > > >, and PropertyWithVerifier< std::vector< std::string >, BoundedVerifier< std::vector< std::string > > >.
|
pure virtual |
NB: abstract : to be implemented when verifier is available.
Implemented in PropertyWithVerifier< TYPE, VERIFIER >, PropertyWithVerifier< TYPE, VERIFIER >, PropertyWithVerifier< int, BoundedVerifier< int > >, PropertyWithVerifier< int, BoundedVerifier< int > >, PropertyWithVerifier< double, BoundedVerifier< double > >, PropertyWithVerifier< double, BoundedVerifier< double > >, PropertyWithVerifier< unsigned int, BoundedVerifier< unsigned int > >, PropertyWithVerifier< unsigned int, BoundedVerifier< unsigned int > >, PropertyWithVerifier< bool, BoundedVerifier< bool > >, PropertyWithVerifier< bool, BoundedVerifier< bool > >, PropertyWithVerifier< std::string, BoundedVerifier< std::string > >, PropertyWithVerifier< std::string, BoundedVerifier< std::string > >, PropertyWithVerifier< std::vector< std::string >, BoundedVerifier< std::vector< std::string > > >, and PropertyWithVerifier< std::vector< std::string >, BoundedVerifier< std::vector< std::string > > >.
|
inlineoverridevirtual |
value -> stream
Implementation of PropertyWithValue::toStream.
Implements Property.
Definition at line 303 of file Property.h.
|
overridevirtual |
value -> stream
Implements Property.
|
inlineoverridevirtual |
value -> string
Implementation of PropertyWithValue::toString.
Implements Property.
Definition at line 293 of file Property.h.
|
overridevirtual |
value -> string
Implements Property.
|
inline |
explicit conversion
|
inline |
explicit conversion
get the access to the storage
Definition at line 341 of file Property.h.
|
private |
owner of the storage
Definition at line 203 of file Property.h.
|
private |
the actual property value
Definition at line 201 of file Property.h.