libqi-api  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
qi::TypeCStringImpl Class Reference

#include <stringtypeinterface.hxx>

Public Types

using Methods = DefaultTypeImplMethods< char *, TypeByValue< char * >>
 
- Public Types inherited from qi::StringTypeInterface
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 *ptr, size_t sz) override
 Set the value of the string. More...
 
void * clone (void *src) override
 Allocate a storage and copy the value given as an argument. More...
 
void destroy (void *src) override
 Free all resources of a storage. More...
 
 _QI_BOUNCE_TYPE_METHODS_NOCLONE (Methods)
 
- Public Member Functions inherited from qi::StringTypeInterface
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
 
- Public Member Functions inherited from qi::TypeInterface
virtual ~TypeInterface ()=default
 
virtual const TypeInfoinfo ()=0
 Get the TypeInfo corresponding to this type. More...
 
virtual void * initializeStorage (void *ptr=nullptr)=0
 
virtual void * ptrFromStorage (void **)=0
 
virtual bool less (void *a, void *b)=0
 
const char * infoString ()
 
qi::Signature signature (void *storage=nullptr, bool resolveDynamic=false)
 

Additional Inherited Members

- Static Public Member Functions inherited from qi::TypeInterface
static TypeInterfacefromSignature (const qi::Signature &sig)
 

Detailed Description

Definition at line 53 of file stringtypeinterface.hxx.

Member Typedef Documentation

Definition at line 73 of file stringtypeinterface.hxx.

Member Function Documentation

qi::TypeCStringImpl::_QI_BOUNCE_TYPE_METHODS_NOCLONE ( Methods  )
void* qi::TypeCStringImpl::clone ( void *  )
inlineoverridevirtual

Allocate a storage and copy the value given as an argument.

Implements qi::TypeInterface.

Definition at line 65 of file stringtypeinterface.hxx.

void qi::TypeCStringImpl::destroy ( void *  )
inlineoverridevirtual

Free all resources of a storage.

Implements qi::TypeInterface.

Definition at line 69 of file stringtypeinterface.hxx.

ManagedRawString qi::TypeCStringImpl::get ( void *  storage)
inlineoverridevirtual

Get the internal string representation as UTF-8. It may or may not be a copy.

Implements qi::StringTypeInterface.

Definition at line 56 of file stringtypeinterface.hxx.

void qi::TypeCStringImpl::set ( void **  storage,
const char *  ptr,
size_t  sz 
)
inlineoverridevirtual

Set the value of the string.

Implements qi::StringTypeInterface.

Definition at line 61 of file stringtypeinterface.hxx.


The documentation for this class was generated from the following file: