|
libqi-api
2.4.3.28
|
#include <typeinterface.hpp>
Public Types | |
| typedef std::pair< char *, size_t > | RawString |
| typedef boost::function< void(const RawString &)> | Deleter |
| typedef std::pair< RawString, Deleter > | ManagedRawString |
Public Member Functions | |
| std::string | getString (void *storage) |
| Get a copy of the string value. More... | |
| virtual ManagedRawString | get (void *storage)=0 |
| void | set (void **storage, const std::string &value) |
| Set the value of the string. More... | |
| virtual void | set (void **storage, const char *ptr, size_t sz)=0 |
| 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 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=0, bool resolveDynamic=false) |
Additional Inherited Members | |
Static Public Member Functions inherited from qi::TypeInterface | |
| static TypeInterface * | fromSignature (const qi::Signature &sig) |
Definition at line 103 of file typeinterface.hpp.
| typedef boost::function<void(const RawString&)> qi::StringTypeInterface::Deleter |
Definition at line 107 of file typeinterface.hpp.
| typedef std::pair<RawString, Deleter> qi::StringTypeInterface::ManagedRawString |
Definition at line 108 of file typeinterface.hpp.
| typedef std::pair<char*, size_t> qi::StringTypeInterface::RawString |
Definition at line 106 of file typeinterface.hpp.
|
pure virtual |
Get the internal string representation as UTF-8. It may or may not be a copy.
Implemented in qi::TypeEquivalentString< T, F >, qi::TypeImpl< char[I]>, qi::TypeCStringImpl, and qi::StringTypeInterfaceImpl.
|
inline |
Get a copy of the string value.
Definition at line 14 of file stringtypeinterface.hxx.
|
inlinevirtual |
Get the kind of the data.
This is used to downcast the TypeInterface object to a specialized interface.
Reimplemented from qi::TypeInterface.
Definition at line 119 of file typeinterface.hpp.
|
inline |
Set the value of the string.
Definition at line 23 of file stringtypeinterface.hxx.
|
pure virtual |
Set the value of the string.
Implemented in qi::TypeEquivalentString< T, F >, qi::TypeImpl< char[I]>, qi::TypeCStringImpl, and qi::StringTypeInterfaceImpl.