The IPropertyValue interface provides methods for getting and setting property values. More...
#include <property_intf.h>
Public Member Functions | |
virtual tResult | GetType (IString &&strType) const =0 |
Retrieves the string for the property value type. | |
virtual tResult | Set (const IPropertyValue &oValue)=0 |
Sets the value by a deep copy. | |
virtual tResult | FromString (const IString &strValueAsString)=0 |
Implement to deserialize the value from a textfile and/or to set by string. | |
virtual tResult | ToString (IString &&strIToString) const =0 |
Implement to serialize the value to a textfile and/or to show it on a display. | |
![]() | |
virtual tResult | FromRaw (const IRawMemory &oRawValue)=0 |
Implement to create a fast value copy in memory. | |
virtual tResult | ToRaw (IRawMemory &&oRawValue) const =0 |
Implement to create a fast value copy in memory. | |
Additional Inherited Members | |
![]() | |
virtual | ~IRawValue ()=default |
protected DTOR | |
The IPropertyValue interface provides methods for getting and setting property values.
Definition at line 60 of file property_intf.h.
Implement to deserialize the value from a textfile and/or to set by string.
strValueAsString | [in] String to deserialize from |
ERR_NOERROR | Successfully set to strType . |
any_error | Depends on the implementation. |
Implemented in property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, cPropertyValue, property_value< T >, and cPropertyValue.
Retrieves the string for the property value type.
Usually this is defined by the property_type_definition::TYPE_NAME.
strType | [out] The type name. |
ERR_NOERROR | Successfully set to strType . |
Implemented in property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, property_variable< T >, cPropertyValue, property_value< T >, and cPropertyValue.
Referenced by property_value< T >::Set().
|
pure virtual |
Sets the value by a deep copy.
oValue | [in] Value to set. |
ERR_NOERROR | Successfully set to strType . |
any_error | Depends on the implementation. I.e. ERR_INVALID_TYPE if IPropertyValue::GetType is different and no conversion implemented. |
Implemented in property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, cPropertyValue, property_value< T >, and cPropertyValue.
Implement to serialize the value to a textfile and/or to show it on a display.
strIToString | [out] serialized string value (should be human readable for displays!!) |
ERR_NOERROR | Successfully set to strType . |
any_error | Depends on the implementation. |
Implemented in property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, cPropertyValue, property_value< T >, and cPropertyValue.
Referenced by property_value< T >::Set().