|
std::variant< bool, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, float, double, std::string, tUserDefined > | m_xValue |
|
Definition at line 25 of file properties_v2.h.
◆ FromRaw()
Implement to create a fast value copy in memory.
Usually this method is called if types are equal implementation is within the same binary!
- Parameters
-
oRawValue | [in] Memory representation of the value |
- Return values
-
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.
◆ FromString()
Implement to deserialize the value from a textfile and/or to set by string.
- Parameters
-
strValueAsString | [in] String to deserialize from |
- Return values
-
ERR_NOERROR | Successfully set to strType . |
any_error | Depends on the implementation. |
Implements IPropertyValue.
◆ GetType()
Retrieves the string for the property value type.
Usually this is defined by the property_type_definition::TYPE_NAME.
- Parameters
-
strType | [out] The type name. |
- See also
- property_type_definition
- Return values
-
ERR_NOERROR | Successfully set to strType . |
Implements IPropertyValue.
◆ Set()
Sets the value by a deep copy.
- Parameters
-
- Return values
-
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.
◆ ToRaw()
Implement to create a fast value copy in memory.
Usually this method is called if types are equal implementation is within the same binary!
- Parameters
-
oRawValue | [oRawValue] copy of the memory representation of the value |
- Return values
-
ERR_NOERROR | Successfully copied. |
any_error | Depends on the implementation. You are adviced to return the return value of IRawMemory::Set. |
Implements IRawValue.
◆ ToString()
Implement to serialize the value to a textfile and/or to show it on a display.
- Parameters
-
strIToString | [out] serialized string value (should be human readable for displays!!) |
- Return values
-
ERR_NOERROR | Successfully set to strType . |
any_error | Depends on the implementation. |
Implements IPropertyValue.