#include <properties_v2.h>
Inherits adtf::base::ant::IPropertyValue.
|
|
virtual | ~IRawValue ()=default |
| | protected DTOR
|
| |
Property value implementation for IPropertyValue. The storage type is a std::variant for all fundamental types, std::string and user defined types via tUserDefined struct.
◆ 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()
| tResult adtf::base::spider::cPropertyValue::FromString |
( |
const IString & | strValueAsString | ) |
|
|
overridevirtual |
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()
| tResult adtf::base::spider::cPropertyValue::GetType |
( |
IString && | strType | ) |
const |
|
overridevirtual |
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()
| tResult adtf::base::spider::cPropertyValue::ToString |
( |
IString && | strIToString | ) |
const |
|
overridevirtual |
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: