Wrapping template for a rvalue reference of an IString interface for the type T.
More...
#include <string_intf.h>
Inherits adtf::base::ant::IString, and adtf::base::ant::adtf_string_forward< T >.
|
| | adtf_string (value_type *pstrAssignValue) |
| |
|
| ~adtf_string () |
| | DTOR.
|
| |
| tResult | Set (const char *strValue) override |
| |
| const char * | Get () const override |
| |
| size_t | GetLength () const override |
| |
|
|
static constexpr size_t | InvalidPos = g_npos |
| | Invalid Position size.
|
| |
| static const char * | GetConstChar (const T *const pValue) |
| |
| static size_t | GetCurrentLength (const T *const pValue) |
| |
| static tResult | SetValue (T *const pValue, const char *strValue) |
| |
|
static constexpr bool | is_mutable = false |
| |
template<typename T>
class adtf::base::ant::adtf_string< T >
Wrapping template for a rvalue reference of an IString interface for the type T.
Usually the IString is given as rvalue reference to a function call. This template used adtf_string_forward for special types.
- Template Parameters
-
| T | The String implementation to wrap into IString. |
◆ adtf_string()
CTOR with pointer to the value of value_type
- Parameters
-
| pstrAssignValue | [in] pointer to the value |
◆ Get()
Gets the pointer to the current associated nullterminated-string
- Returns
- The pointer to the null-terminated string.
Implements adtf::base::ant::IString.
◆ GetLength()
Gets the current size of the strng. Usually this is in Bytes (null-termination is not included!)
- Returns
- The size of the string.
- Return values
-
| If | not valid return InvalidPos! |
Implements adtf::base::ant::IString.
◆ Set()
Sets the given null-terminated string to the implementation
- Parameters
-
| strValue | [in] The null-terminated string to set. |
- Return values
-
| ERR_NOERROR | The value is set successfully |
| ERR_MEMORY | The value can not be set. Too long. No truncating provided. |
Implements adtf::base::ant::IString.
The documentation for this class was generated from the following file: