#include <property.h>
Inherits adtf::base::ant::IPropertyValue.
Inherited by adtf::base::ant::property_variable< T > [private].
|
|
virtual | ~IRawValue ()=default |
| | protected DTOR
|
| |
template<typename T>
class adtf::base::property_value< T >
property_value template class that implements the IPropertyValue interface for a given type T.
◆ 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 adtf::base::ant::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 adtf::base::ant::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 adtf::base::ant::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 adtf::base::ant::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 adtf::base::ant::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 adtf::base::ant::IPropertyValue.
The documentation for this class was generated from the following file: