libqi-api  2.4.3.28
 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

typedef DefaultTypeImplMethods
< char *, TypeByValue< char * > > 
Methods
 
- Public Types inherited from qi::StringTypeInterface
typedef std::pair< char *, size_t > RawString
 
typedef boost::function< void(const
RawString &)> 
Deleter
 
typedef std::pair< RawString,
Deleter > 
ManagedRawString
 

Public Member Functions

virtual ManagedRawString get (void *storage)
 
virtual void set (void **storage, const char *ptr, size_t sz)
 Set the value of the string. More...
 
virtual void * clone (void *src)
 Allocate a storage and copy the value given as an argument. More...
 
virtual void destroy (void *src)
 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...
 
virtual TypeKind kind ()
 
- Public Member Functions inherited from qi::TypeInterface
virtual const TypeInfo & info ()=0
 Get the TypeInfo corresponding to this type. More...
 
virtual void * initializeStorage (void *ptr=0)=0
 
virtual void * ptrFromStorage (void **)=0
 
virtual bool less (void *a, void *b)=0
 
const char * infoString ()
 
qi::Signature signature (void *storage=0, bool resolveDynamic=false)
 

Additional Inherited Members

- Static Public Member Functions inherited from qi::TypeInterface
static TypeInterface * fromSignature (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  )
virtual void* qi::TypeCStringImpl::clone ( void *  )
inlinevirtual

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

Implements qi::TypeInterface.

Definition at line 65 of file stringtypeinterface.hxx.

virtual void qi::TypeCStringImpl::destroy ( void *  )
inlinevirtual

Free all resources of a storage.

Implements qi::TypeInterface.

Definition at line 69 of file stringtypeinterface.hxx.

virtual ManagedRawString qi::TypeCStringImpl::get ( void *  storage)
inlinevirtual

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.

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

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: