|
ADTF
|
#include <property_intf.h>
Inherits adtf::base::ant::IRawValue.
Inherited by adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< T >, and adtf::base::spider::cPropertyValue.
Public Member Functions | |
| virtual tResult | GetType (IString &&strType) const =0 |
| virtual tResult | Set (const IPropertyValue &oValue)=0 |
| virtual tResult | FromString (const IString &strValueAsString)=0 |
| virtual tResult | ToString (IString &&strIToString) const =0 |
Public Member Functions inherited from adtf::base::ant::IRawValue | |
| virtual tResult | FromRaw (const IRawMemory &oRawValue)=0 |
| virtual tResult | ToRaw (IRawMemory &&oRawValue) const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::base::ant::IRawValue | |
| virtual | ~IRawValue ()=default |
| protected DTOR | |
The IPropertyValue interface provides methods for getting and setting property values.
|
pure virtual |
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 adtf::base::ant::property_value< T >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::cPropertyValue, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.
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 adtf::base::ant::property_value< T >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_variable< T >, adtf::base::cPropertyValue, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.
|
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 adtf::base::ant::property_value< T >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::cPropertyValue, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.
|
pure virtual |
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 adtf::base::ant::property_value< T >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::ant::property_value< property_type >, adtf::base::cPropertyValue, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.