Property property implementation template. More...
#include <property.h>
Public Member Functions | |
property () | |
CTOR. | |
~property ()=default | |
DTOR. | |
property (const property &oProperty) | |
Copy CTOR. | |
property (property &&oProperty) | |
implementation of the move CTOR (but it is not moving yet) | |
property & | operator= (const property &oValue) |
copy assignment | |
property & | operator= (property &&oProperty) |
move assignment (its not moving yet) | |
property (const adtf_util::cString &strName, const T &oValue) | |
CTOR with name an value. | |
property (std_string_helper, std::string_view strName) | |
CTOR with name an value. | |
property (const T &oValue) | |
CTOR with value. | |
const property & | operator= (const T &oValue) |
value assignment | |
bool | operator== (const property &oProperty) const |
compare operator | |
bool | operator== (const T &oValue) const |
compare operator | |
T | GetValueT () const |
Get the containing value. | |
tResult | Set (const property &oProperty) |
Sets the property value and name as COPY of oProperty. | |
virtual const IPropertyValue * | GetValue () const |
virtual IPropertyValue * | GetValue () |
virtual tResult | SetValue (const IPropertyValue &oValue) |
tResult | Set (const IProperty &oProp) |
![]() | |
tResult | GetName (IString &&strName) const override |
bool | HasProperties () const override |
bool | HasAttachedProperties () const override |
tResult | SetProperties (const IProperties &oProperties) override |
will copy given properties | |
tResult | AttachProperties (const ucom::ant::iobject_ptr< IProperties > &pAttachedProperties) override |
will set given properties to be attached | |
tResult | GetAttachedProperties (IProperty &oProperty) const override |
tResult | DetachProperties () override |
tResult | GetProperties (ucom::ant::iobject_ptr< IProperties > &pSubProperties) override |
get subproperties for writing access | |
tResult | GetProperties (ucom::ant::iobject_ptr< const IProperties > &pSubProperties) const override |
get subproperties for readonly access | |
tResult | SetName (const IString &strName) override |
Private Attributes | |
property_value< T > | m_oValue |
value type container | |
Additional Inherited Members | |
![]() | |
util::cString | m_strName |
ucom::object_ptr< IProperties > | m_poSubProperties = nullptr |
ucom::object_ptr< IProperties > | m_poAttachedProperties = nullptr |
Property property implementation template.
Use this template to create an instance of an property with for the given value type T.
T | Raw Value type for the property. |
Definition at line 211 of file property.h.
|
inline |
CTOR.
Definition at line 219 of file property.h.
Copy CTOR.
Definition at line 226 of file property.h.
implementation of the move CTOR (but it is not moving yet)
Definition at line 231 of file property.h.
|
inline |
CTOR with name an value.
strName | [in] Name of the property |
oValue | [in] Value of the property |
Definition at line 264 of file property.h.
|
inline |
CTOR with name an value.
strName | [in] Name of the property |
oValue | [in] Value of the property |
Definition at line 275 of file property.h.
|
inline |
CTOR with value.
oValue | [in] Value of the property |
Definition at line 284 of file property.h.
|
inlinevirtual |
Implements IProperty.
Definition at line 361 of file property.h.
|
inlinevirtual |
Implements IProperty.
Definition at line 357 of file property.h.
|
inline |
Get the containing value.
Definition at line 324 of file property.h.
Referenced by property<::adtf::base::ant::property_attached_configuration_type >::operator==().
copy assignment
Definition at line 241 of file property.h.
|
inline |
value assignment
oValue | [in] Value of the property |
Definition at line 292 of file property.h.
move assignment (its not moving yet)
Definition at line 248 of file property.h.
|
inline |
compare operator
oProperty | [in] property to compare to |
true | The value (only the value!) is equal. |
false | The value (only the value!) is not equal. |
Definition at line 304 of file property.h.
|
inline |
compare operator
oValue | [in] value to compare to |
true | The value (only the value!) is equal. |
false | The value (only the value!) is not equal. |
Definition at line 315 of file property.h.
Implements IProperty.
Definition at line 382 of file property.h.
Sets the property value and name as COPY of oProperty.
Also every Subproperty is copied. If the oProperty
has attached properties they will be referenced.
Definition at line 336 of file property.h.
Referenced by property<::adtf::base::ant::property_attached_configuration_type >::property(), and property<::adtf::base::ant::property_attached_configuration_type >::operator=().
|
inlinevirtual |
Implements IProperty.
Definition at line 366 of file property.h.
|
private |
value type container
Definition at line 215 of file property.h.
Referenced by property<::adtf::base::ant::property_attached_configuration_type >::Set().