ADTF  3.18.2
property< T, Enable >
Inheritance diagram for property< T, Enable >:
[legend]

Public Member Functions

 property (const T &oValue)
 
 property (std::string_view strName, const T &oValue)
 
 property (const char *strName, const T &oValue)
 
const T & GetValueT () const
 
bool operator== (const T &xOther) const
 
propertyoperator= (const T &xValue)
 
- Public Member Functions inherited from cProperty
 cProperty (const cProperty &)=default
 
 cProperty (cProperty &&)=default
 
cPropertyoperator= (const cProperty &)=default
 
cPropertyoperator= (cProperty &&)=default
 
 cProperty (const ant::IProperty &oProp)
 
template<typename T >
 cProperty (std::string_view strName, const T &xValue)
 
template<typename T >
 cProperty (const char *strName, const T &xValue)
 
template<typename T >
 cProperty (const T &xValue)
 
const IPropertyValueGetValue () const override
 
IPropertyValueGetValue () override
 
tResult SetValue (const IPropertyValue &oValue) override
 
template<typename T >
tResult SetValue (const T &xValue)
 
tResult GetName (IString &&strName) const override
 
tResult SetName (const IString &strName) override
 
tResult Set (const IProperty &oProp) override
 
bool HasProperties () const override
 
bool HasAttachedProperties () const override
 
tResult SetProperties (const IProperties &pProperties) override
 will copy given properties
 
tResult AttachProperties (const ucom::ant::iobject_ptr< IProperties > &pProperties) override
 
tResult GetAttachedProperties (IProperty &pProperty) const override
 
tResult DetachProperties () override
 
tResult GetProperties (ucom::ant::iobject_ptr< IProperties > &pProperties) override
 get subproperties for writing access
 
IPropertiesGetProperties ()
 
tResult GetProperties (ucom::ant::iobject_ptr< const IProperties > &pProperties) const override
 get subproperties for readonly access
 
void RegisterObserver (IPropertyObserver &oObserver)
 
void UnregisterObserver (IPropertyObserver &oObserver)
 

Private Member Functions

void InitValue (const T &oValue)
 
void ConvertAndSetValue (const T &oValue)
 
void Notify (const IProperty &)
 Implements the observer pattern. More...
 
 ~IPropertyObserver ()=default
 Protected destructor.
 

Private Attributes

m_xValue
 

Detailed Description

template<typename T, typename Enable = void>
class adtf::base::spider::property< T, Enable >

Definition at line 235 of file properties_v2.h.

Member Function Documentation

◆ Notify()

void Notify ( const IProperty oProperty)
inlineprivatevirtual

Implements the observer pattern.

Parameters
[in]oPropertyThe changed property.
Note
If oProperty is a subproperty, you will only receive the name of the subproperty without path or parent. Instead of implementing a adtf::base::ant::IPropertyObserver for each required property, you can also use adtf::base::hollow::property_variable::SetPropertyChangedCallback().

Implements IPropertyObserver.

Definition at line 287 of file properties_v2.h.

References THROW_IF_FAILED.