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 (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 Mon Oct 26 09:09:50 2009 for Qore Programming Language by  doxygen 1.5.6