ADTF
Loading...
Searching...
No Matches
adtf::base::cProperty Class Reference

#include <properties_v2.h>

Inherits adtf::base::ant::IProperty.

Inherited by adtf::base::spider::property< T, typename std::enable_if<!detail::is_user_defined_property_value< T >::value >::type >, adtf::base::spider::property< T, Enable >, and adtf::base::spider::property< T, typename std::enable_if<!detail::is_user_defined_property_value< T >::value >::type >.

Public Member Functions

 cProperty (const cProperty &oProp)
 
 cProperty (cProperty &&oProp)
 
 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)
 
cPropertyoperator= (const cProperty &oProp)
 
cPropertyoperator= (cProperty &&oProp)
 
cPropertyoperator= (const ant::IProperty &oProp)
 
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)
 

Detailed Description

Property implementation for IProperty, supports subproperties via cProperties and observers via IPropertyObserver.

Member Function Documentation

◆ AttachProperties()

tResult adtf::base::spider::cProperty::AttachProperties ( const ucom::ant::iobject_ptr< IProperties > & pProperties)
overridevirtual
Deprecated
Attachments are deprecated, they suffer from issues with observers.

Implements adtf::base::ant::IProperty.

◆ DetachProperties()

tResult adtf::base::spider::cProperty::DetachProperties ( )
overridevirtual
Deprecated
Attachments are deprecated, they suffer from issues with observers.

Implements adtf::base::ant::IProperty.

◆ GetAttachedProperties()

tResult adtf::base::spider::cProperty::GetAttachedProperties ( IProperty & pProperty) const
overridevirtual
Deprecated
Attachments are deprecated, they suffer from issues with observers.

Implements adtf::base::ant::IProperty.

◆ GetName()

tResult adtf::base::spider::cProperty::GetName ( IString && strName) const
overridevirtual

◆ GetProperties() [1/2]

tResult adtf::base::spider::cProperty::GetProperties ( ucom::ant::iobject_ptr< const IProperties > & pProperties) const
overridevirtual

get subproperties for readonly access

Implements adtf::base::ant::IProperty.

◆ GetProperties() [2/2]

tResult adtf::base::spider::cProperty::GetProperties ( ucom::ant::iobject_ptr< IProperties > & pSubProperties)
overridevirtual

get subproperties for writing access

Implements adtf::base::ant::IProperty.

◆ GetValue() [1/2]

const IPropertyValue * adtf::base::spider::cProperty::GetValue ( ) const
overridevirtual

◆ GetValue() [2/2]

IPropertyValue * adtf::base::spider::cProperty::GetValue ( )
overridevirtual

◆ HasAttachedProperties()

bool adtf::base::spider::cProperty::HasAttachedProperties ( ) const
overridevirtual

◆ HasProperties()

bool adtf::base::spider::cProperty::HasProperties ( ) const
overridevirtual

◆ operator=() [1/3]

cProperty & adtf::base::spider::cProperty::operator= ( const ant::IProperty & oProp)

Copy assignment, mind that this will perform a merge of the subproperties of oProp into this, behaves like Set().

◆ operator=() [2/3]

cProperty & adtf::base::spider::cProperty::operator= ( const cProperty & oProp)

Copy assignment, mind that this will perform a merge of the subproperties of oProp into this, behaves like Set().

◆ operator=() [3/3]

cProperty & adtf::base::spider::cProperty::operator= ( cProperty && oProp)

Move assignment, mind that this will perform a merge of the subproperties of oProp into this (via copy).

◆ Set()

tResult adtf::base::spider::cProperty::Set ( const IProperty & oProp)
overridevirtual

◆ SetName()

tResult adtf::base::spider::cProperty::SetName ( const IString & strName)
overridevirtual

◆ SetProperties()

tResult adtf::base::spider::cProperty::SetProperties ( const IProperties & pProperties)
overridevirtual

will copy given properties

Implements adtf::base::ant::IProperty.

◆ SetValue()

tResult adtf::base::spider::cProperty::SetValue ( const IPropertyValue & oValue)
overridevirtual

The documentation for this class was generated from the following file: