ADTF
adtf_string_forward< std::string >

Specialization for std::string class. More...

Static Public Member Functions

static const char * GetConstChar (const std::string *const pValue)
 Retrieves a const char pointer (null-terminated). More...
 
static size_t GetCurrentLength (const std::string *const pValue)
 Retrieves the string size of the given pValue. More...
 
static tResult SetValue (std::string *const pValue, const char *strValue)
 Sets the given strValue to the string type implementation of the given pValue. More...
 

Detailed Description

Specialization for std::string class.

Definition at line 114 of file string_intf.h.

Member Function Documentation

◆ GetConstChar()

static const char* GetConstChar ( const std::string *const  pValue)
inlinestatic

Retrieves a const char pointer (null-terminated).

Parameters
pValue[in] Pointer to string implementation.
Returns
the pointer to a const char* nullterminated string out of pValue
Remarks
The return value is only valid as long as pValue is alive.

Definition at line 117 of file string_intf.h.

◆ GetCurrentLength()

static size_t GetCurrentLength ( const std::string *const  pValue)
inlinestatic

Retrieves the string size of the given pValue.

Parameters
pValue[in] Pointer to string implementation.
Returns
size of the string (char count without null-terminated value)

Definition at line 122 of file string_intf.h.

◆ SetValue()

static tResult SetValue ( std::string *const  pValue,
const char *  strValue 
)
inlinestatic

Sets the given strValue to the string type implementation of the given pValue.

Parameters
pValue[in] Pointer to string implementation.
strValue[in] value to set.
Returns
Depends on implementation.
Return values
ERR_ACCESS_DENIEDwriting access denied, value can not be set.
ERR_MEMORYstrValue size exceeds the buffer of pValue.
ERR_NOERRORSuccessfully set.

Definition at line 127 of file string_intf.h.

References RETURN_NOERROR.