The IRawValue interface provides methods for getting and setting raw values. More...
#include <property_intf.h>
Public Member Functions | |
virtual tResult | FromRaw (const IRawMemory &oRawValue)=0 |
Implement to create a fast value copy in memory. | |
virtual tResult | ToRaw (IRawMemory &&oRawValue) const =0 |
Implement to create a fast value copy in memory. | |
Protected Member Functions | |
virtual | ~IRawValue ()=default |
protected DTOR | |
The IRawValue interface provides methods for getting and setting raw values.
Definition at line 25 of file property_intf.h.
|
pure virtual |
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. |
Implemented in hash_value_map< STORAGE, INTERFACE >::cHashedValueGetter, hash_value_map< STORAGE, INTERFACE >, property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, cPropertyValue, hash_value_map< STORAGE, INTERFACE >::cHashedValueGetter, hash_value_map< STORAGE, INTERFACE >, property_value< T >, and cPropertyValue.
Referenced by hash_value_map< STORAGE, INTERFACE >::Get().
|
pure virtual |
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. |
Implemented in hash_value_map< STORAGE, INTERFACE >::cHashedValueGetter, hash_value_map< STORAGE, INTERFACE >, property_value< T >, property_value< property_type >, property_value< property_type >, property_value< property_type >, cPropertyValue, hash_value_map< STORAGE, INTERFACE >::cHashedValueGetter, hash_value_map< STORAGE, INTERFACE >, property_value< T >, and cPropertyValue.
Referenced by property_value< T >::Set(), and hash_value_map< STORAGE, INTERFACE >::SetValue().