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