ADTF  3.18.2
IRawValueabstract

The IRawValue interface provides methods for getting and setting raw values. More...

Inheritance diagram for IRawValue:
[legend]

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
 

Detailed Description

The IRawValue interface provides methods for getting and setting raw values.

Definition at line 24 of file property_intf.h.

Member Function Documentation

◆ FromRaw()

virtual tResult FromRaw ( const IRawMemory oRawValue)
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!

Parameters
oRawValue[in] Memory representation of the value
Return values
ERR_NOERRORSuccessfully copied.
ERR_MEMORYYou have to return ERR_MEMORY if size of oRawValue does not fit !!
any_errorDepends 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().

◆ ToRaw()

virtual tResult ToRaw ( IRawMemory &&  oRawValue) const
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!

Parameters
oRawValue[oRawValue] copy of the memory representation of the value
Return values
ERR_NOERRORSuccessfully copied.
any_errorDepends 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().