ADTF Qt5
Loading...
Searching...
No Matches
adtf::base::ant::adtf_string_forward< QString > Struct Reference

#include <qt_string_intf.h>

Inherited by adtf::base::ant::adtf_string_forward< const QString >.

Public Member Functions

const char * GetConstChar (const QString *const pValue) const
 
size_t GetCurrentLength (const QString *const pValue) const
 
tResult SetValue (QString *const pValue, const char *strValue)
 

Public Attributes

mutable ::std::optional< QByteArray > m_oValueToReturnConstChar
 Cached value to return const char pointer.
 

Static Public Attributes

static constexpr bool is_mutable = true
 Indicates that the string is mutable.
 

Detailed Description

Specialization for QString class.

Member Function Documentation

◆ GetConstChar()

const char * adtf::base::ant::adtf_string_forward< QString >::GetConstChar ( const QString *const pValue) const
inline

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

◆ GetCurrentLength()

size_t adtf::base::ant::adtf_string_forward< QString >::GetCurrentLength ( const QString *const pValue) const
inline

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)

◆ SetValue()

tResult adtf::base::ant::adtf_string_forward< QString >::SetValue ( QString *const pValue,
const char * strValue )
inline

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

Parameters
pValue[in] Pointer to string implementation.
strValue[in] Pointer to a null-terminated char array.
Returns
Standard result code.

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