|
ADTF
|
#include <string_intf.h>
Inherits adtf::base::ant::IString.
Public Member Functions | |
| cStringRedirect (std::function< tResult(const ant::IString &)> fnForward) | |
| tResult | Set (const char *strValue) override |
| size_t | GetLength () const override |
| const char * | Get () const override |
Additional Inherited Members | |
Static Public Attributes inherited from adtf::base::ant::IString | |
| static constexpr size_t | InvalidPos = g_npos |
| Invalid Position size. | |
String redirect class to forward the string set operation without copy of the string value.
|
inlineoverridevirtual |
Gets the pointer to the current associated nullterminated-string
Implements adtf::base::ant::IString.
|
inlineoverridevirtual |
Gets the current size of the strng. Usually this is in Bytes (null-termination is not included!)
| If | not valid return InvalidPos! |
Implements adtf::base::ant::IString.
|
inlineoverridevirtual |
Sets the given null-terminated string to the implementation
| strValue | [in] The null-terminated string to set. |
| 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.