ADTF
|
Public Member Functions | |
property_value (const property_value &oValue) | |
property_value (property_value &&oValue) | |
property_value & | operator= (const property_value &oValue) |
property_value & | operator= (property_value &&oValue) |
property_value (const T &oValue) | |
void | Release () |
const property_value & | operator= (const T &oValue) |
bool | operator== (const T &oValue) const |
bool | operator== (const property_value &oValue) const |
const T & | GetValue () const |
tResult | Set (const IPropertyValue &oValue) |
Sets the value by a deep copy. More... | |
tResult | GetType (IString &&strType) const |
Retrieves the string for the property value type. More... | |
tResult | ToRaw (IRawMemory &&oToMem) const |
Implement to create a fast value copy in memory. More... | |
tResult | FromRaw (const IRawMemory &oFromMem) |
Implement to create a fast value copy in memory. More... | |
tResult | ToString (IString &&oStringValue) const |
Implement to serialize the value to a textfile and/or to show it on a display. More... | |
tResult | FromString (const IString &oStringValue) |
Implement to deserialize the value from a textfile and/or to set by string. More... | |
Protected Attributes | |
T | m_oValue |
Additional Inherited Members | |
Protected Member Functions inherited from IRawValue | |
virtual | ~IRawValue ()=default |
protected DTOR | |
Definition at line 21 of file property.h.
|
inlinevirtual |
Implement to create a fast value copy in memory.
Usually this method is called if types are equal implementation is within the same binary!
oRawValue | [in] Memory representation of the value |
ERR_NOERROR | Successfully copied. |
ERR_MEMORY | You have to return ERR_MEMORY if size of oRawValue does not fit !! |
any_error | Depends on the implementation. |
Implements IRawValue.
Definition at line 148 of file property.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. |
Implements IPropertyValue.
Definition at line 160 of file property.h.
References IString::Get().
Referenced by property_value< T >::Set().
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 . |
Implements IPropertyValue.
Definition at line 139 of file property.h.
Referenced by property_variable< T >::GetType(), and property_value< T >::Set().
|
inlinevirtual |
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. |
Implements IPropertyValue.
Definition at line 76 of file property.h.
References A_UTILS_ASSERT, adtf_string_intf, property_value< T >::FromString(), IRawMemory::GetSize(), property_value< T >::GetType(), IPropertyValue::GetType(), IS_FAILED, IS_OK, RETURN_ERROR, RETURN_IF_FAILED, RETURN_NOERROR, IRawValue::ToRaw(), and IPropertyValue::ToString().
Referenced by property_variable< T >::Notify().
|
inlinevirtual |
Implement to create a fast value copy in memory.
Usually this method is called if types are equal implementation is within the same binary!
oRawValue | [oRawValue] copy of the memory representation of the value |
ERR_NOERROR | Successfully copied. |
any_error | Depends on the implementation. You are adviced to return the return value of IRawMemory::Set. |
Implements IRawValue.
Definition at line 144 of file property.h.
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. |
Implements IPropertyValue.
Definition at line 153 of file property.h.
References RETURN_IF_FAILED, and RETURN_NOERROR.