ADTF
|
Implementation concept template for user defined adtf_string type support (see Supported types for adtf_string<T> for writing and reading strings via interface IString). More...
Static Public Member Functions | |
static const char * | GetConstChar (const T *const pValue) |
Retrieves a const char pointer (null-terminated). More... | |
static size_t | GetCurrentLength (const T *const pValue) |
Retrieves the string size of the given pValue . More... | |
static tResult | SetValue (T *const pValue, const char *strValue) |
Sets the given strValue to the string type implementation of the given pValue . More... | |
Implementation concept template for user defined adtf_string type support (see Supported types for adtf_string<T> for writing and reading strings via interface IString).
This template is used within adtf_string.
T | Type of specialisation. You need to implement a adtf_string_forward implementation for your string class. |
Definition at line 64 of file string_intf.h.
|
inlinestatic |
Retrieves a const char pointer (null-terminated).
pValue | [in] Pointer to string implementation. |
pValue
pValue
is alive. Definition at line 72 of file string_intf.h.
Referenced by adtf_string< T >::Get().
|
inlinestatic |
Retrieves the string size of the given pValue
.
pValue | [in] Pointer to string implementation. |
Definition at line 84 of file string_intf.h.
Referenced by adtf_string< T >::GetLength().
|
inlinestatic |
Sets the given strValue
to the string type implementation of the given pValue
.
pValue | [in] Pointer to string implementation. |
strValue | [in] value to set. |
ERR_ACCESS_DENIED | writing access denied, value can not be set. |
ERR_MEMORY | strValue size exceeds the buffer of pValue . |
ERR_NOERROR | Successfully set. |
Definition at line 101 of file string_intf.h.
Referenced by adtf_string< T >::Set().