Implementation concept template ehich defines the layout of a forward string class.
More...
|
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...
|
|
template<typename T>
struct adtf::base::ant::adtf_string_forward< T >
Implementation concept template ehich defines the layout of a forward string class.
This template is used within adtf_string.
- Template Parameters
-
T | Type of specialisation. You need to implement a adtf_string_forward implementation for your string class. |
Definition at line 59 of file string_intf.h.
◆ GetConstChar()
static const char* GetConstChar |
( |
const T *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
Referenced by adtf_string< T >::Get().
◆ GetCurrentLength()
static size_t GetCurrentLength |
( |
const T *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)
Referenced by adtf_string< T >::GetLength().
◆ SetValue()
static tResult SetValue |
( |
T *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_DENIED | writing access denied, value can not be set. |
ERR_MEMORY | strValue size exceeds the buffer of pValue . |
ERR_NOERROR | Successfully set. |
Referenced by adtf_string< T >::Set().