ADTF
Loading...
Searching...
No Matches
adtf::base::ant::IRawValue Class Referenceabstract

#include <property_intf.h>

Inherited by adtf::base::ant::IHashValueMap, adtf::base::ant::IHashValueMapValue, and adtf::base::ant::IPropertyValue.

Public Member Functions

virtual tResult FromRaw (const IRawMemory &oRawValue)=0
 
virtual tResult ToRaw (IRawMemory &&oRawValue) const =0
 

Protected Member Functions

virtual ~IRawValue ()=default
 protected DTOR
 

Detailed Description

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

Member Function Documentation

◆ FromRaw()

virtual tResult adtf::base::ant::IRawValue::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 adtf::base::ant::hash_value_map< STORAGE, INTERFACE >, 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::hash_value_map< STORAGE, INTERFACE >, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.

◆ ToRaw()

virtual tResult adtf::base::ant::IRawValue::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 adtf::base::ant::hash_value_map< STORAGE, INTERFACE >, 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::hash_value_map< STORAGE, INTERFACE >, adtf::base::property_value< T >, and adtf::base::spider::cPropertyValue.


The documentation for this class was generated from the following file: