ADTF
|
The IPropertyValue interface provides methods for getting and setting property values. More...
Public Member Functions | |
virtual tResult | GetType (IString &&strType) const =0 |
Retrieves the string for the property value type. More... | |
virtual tResult | Set (const IPropertyValue &oValue)=0 |
Sets the value by a deep copy. More... | |
virtual tResult | FromString (const IString &strValueAsString)=0 |
Implement to deserialize the value from a textfile and/or to set by string. More... | |
virtual tResult | ToString (IString &&strIToString) const =0 |
Implement to serialize the value to a textfile and/or to show it on a display. More... | |
Public Member Functions inherited from IRawValue | |
virtual tResult | FromRaw (const IRawMemory &oRawValue)=0 |
Implement to create a fast value copy in memory. More... | |
virtual tResult | ToRaw (IRawMemory &&oRawValue) const =0 |
Implement to create a fast value copy in memory. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IRawValue | |
virtual | ~IRawValue ()=default |
protected DTOR | |
The IPropertyValue interface provides methods for getting and setting property values.
Definition at line 59 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 cPropertyValue, property_value< T >, and property_value< property_type >.
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 cPropertyValue, property_variable< T >, property_value< T >, and property_value< property_type >.
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 cPropertyValue, property_value< T >, and property_value< property_type >.
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 cPropertyValue, property_value< T >, and property_value< property_type >.
Referenced by property_value< T >::Set().