ADTF
|
The IString interface provides methods for getting and setting strings through abstract interfaces. More...
Public Member Functions | |
virtual tResult | Set (const char *strValue)=0 |
Sets the given null-terminated string to the implementation. More... | |
virtual const char * | Get () const =0 |
Gets the pointer to the current associated nullterminated-string. More... | |
virtual size_t | GetLength () const =0 |
Gets the current size of the strng. More... | |
Static Public Attributes | |
static constexpr size_t | InvalidPos = g_npos |
Invalid Position size. | |
The IString interface provides methods for getting and setting strings through abstract interfaces.
See adtf_string if you want to forward your own string type.
Definition at line 27 of file string_intf.h.
|
pure virtual |
Gets the pointer to the current associated nullterminated-string.
Implemented in cStringRedirect, cStringLengthProxy, adtf_string< T >, and cQtIStringImpl.
Referenced by property_value< T >::FromString().
|
pure virtual |
Gets the current size of the strng.
Usually this is in Bytes (null-termination is not included!)
If | not valid return InvalidPos! |
Implemented in cStringRedirect, cStringLengthProxy, adtf_string< T >, and cQtIStringImpl.
|
pure virtual |
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. |
Implemented in cStringRedirect, adtf_string< T >, cQtIStringImpl, and cStringLengthProxy.