ADTF
Loading...
Searching...
No Matches
property_type_conversion< TYPE >

Concept template to define the conversion type for the given type TYPE of a property. More...

#include <propertyconvert.h>

Static Public Member Functions

static tResult Convert (const IPropertyValue &oPropertyType, TYPE &oToValue)
 
static tResult ToString (const adtf_util::cString &oFromValue, TYPE &strToString)
 
static tResult FromString (const adtf_util::cString &strFromString, TYPE &oToValue)
 
static tResult ToRaw (const void *pData, const size_t szDataSize, IRawMemory &oToMem)
 
static tResult FromRaw (const IRawMemory &oFromMem, void *pData, const size_t szDataSize)
 

Detailed Description

template<typename TYPE>
struct adtf::base::ant::property_type_conversion< TYPE >

Concept template to define the conversion type for the given type TYPE of a property.

This template is used within the container template property_value and property. Use a specialization of this template to define your own property user type. See cPropertyStringConversion which functions are expected.

Template Parameters
TYPEvalue type for the property
See also
property

Definition at line 39 of file propertyconvert.h.

Member Function Documentation

◆ Convert()

template<typename TYPE>
static tResult Convert ( const IPropertyValue & oPropertyType,
TYPE & oToValue )
inlinestatic

Definition at line 41 of file propertyconvert.h.

◆ FromRaw()

template<typename TYPE>
static tResult FromRaw ( const IRawMemory & oFromMem,
void * pData,
const size_t szDataSize )
inlinestatic

Definition at line 65 of file propertyconvert.h.

◆ FromString()

template<typename TYPE>
static tResult FromString ( const adtf_util::cString & strFromString,
TYPE & oToValue )
inlinestatic

Definition at line 53 of file propertyconvert.h.

◆ ToRaw()

template<typename TYPE>
static tResult ToRaw ( const void * pData,
const size_t szDataSize,
IRawMemory & oToMem )
inlinestatic

Definition at line 59 of file propertyconvert.h.

◆ ToString()

template<typename TYPE>
static tResult ToString ( const adtf_util::cString & oFromValue,
TYPE & strToString )
inlinestatic

Definition at line 47 of file propertyconvert.h.