TempString Class Reference

class used to hold a possibly temporary QoreString pointer, stack only, cannot be dynamically allocated More...

#include <QoreString.h>

List of all members.

Public Member Functions

DLLLOCAL TempString ()
 populates the object with a new QoreString that this object will manage
DLLLOCAL TempString (const QoreEncoding *enc)
 populates the object with a new QoreString in a specific encoding that this object will manage
DLLLOCAL TempString (QoreString *s)
 populates the object with the QoreString pointer to be managed
DLLLOCAL ~TempString ()
 deletes the QoreString pointer being managed
DLLLOCAL QoreStringoperator-> ()
 returns the QoreString pointer being managed
DLLLOCAL QoreStringoperator* ()
 returns the QoreString pointer being managed
DLLLOCAL operator bool () const
 returns true if a QoreString pointer is being managed
DLLLOCAL QoreStringrelease ()
 releases the QoreString pointer being managed and sets the internal pointer to 0

Detailed Description

class used to hold a possibly temporary QoreString pointer, stack only, cannot be dynamically allocated

   TempString rv(new QoreString());
   ...
   if (error)
   return 0; // here the memory is automatically released
   return rv.release();

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

Generated on 14 Jun 2010 for Qore Programming Language by  doxygen 1.6.1