libqi-api
2.8.7.4
|
#include <stringtypeinterface.hxx>
Public Types | |
using | Methods = DefaultTypeImplMethods< std::string, TypeByPointerPOD< std::string >> |
![]() | |
using | RawString = std::pair< char *, size_t > |
using | Deleter = boost::function< void(const RawString &)> |
using | ManagedRawString = std::pair< RawString, Deleter > |
Public Member Functions | |
ManagedRawString | get (void *storage) override |
void | set (void **storage, const char *value, size_t sz) override |
Set the value of the string. More... | |
_QI_BOUNCE_TYPE_METHODS (Methods) | |
![]() | |
std::string | getString (void *storage) |
Get a copy of the string value. More... | |
void | set (void **storage, const std::string &value) |
Set the value of the string. More... | |
TypeKind | kind () override |
![]() | |
virtual | ~TypeInterface ()=default |
virtual const TypeInfo & | info ()=0 |
Get the TypeInfo corresponding to this type. More... | |
virtual void * | initializeStorage (void *ptr=nullptr)=0 |
virtual void * | ptrFromStorage (void **)=0 |
virtual void * | clone (void *)=0 |
Allocate a storage and copy the value given as an argument. More... | |
virtual void | destroy (void *)=0 |
Free all resources of a storage. More... | |
virtual bool | less (void *a, void *b)=0 |
const char * | infoString () |
qi::Signature | signature (void *storage=nullptr, bool resolveDynamic=false) |
Additional Inherited Members | |
![]() | |
static TypeInterface * | fromSignature (const qi::Signature &sig) |
Definition at line 30 of file stringtypeinterface.hxx.
using qi::StringTypeInterfaceImpl::Methods = DefaultTypeImplMethods<std::string, TypeByPointerPOD<std::string>> |
Definition at line 33 of file stringtypeinterface.hxx.
qi::StringTypeInterfaceImpl::_QI_BOUNCE_TYPE_METHODS | ( | Methods | ) |
|
inlineoverridevirtual |
Get the internal string representation as UTF-8. It may or may not be a copy.
Implements qi::StringTypeInterface.
Definition at line 34 of file stringtypeinterface.hxx.
|
inlineoverridevirtual |
Set the value of the string.
Implements qi::StringTypeInterface.
Definition at line 40 of file stringtypeinterface.hxx.