|
Qore Programming Language
0.8.3
|
safely manages the return values to AbstractQoreNode::getAsString(), stack only, cannot be dynamically allocated More...
#include <QoreStringNode.h>
Public Member Functions | |
| DLLLOCAL | QoreNodeAsStringHelper (const AbstractQoreNode *n, int format_offset, ExceptionSink *xsink) |
| makes the call to AbstractQoreNode::getAsString() and manages the return values | |
| DLLLOCAL | ~QoreNodeAsStringHelper () |
| destroys the object and deletes the QoreString pointer being managed if it was a temporary pointer | |
| DLLLOCAL const QoreString * | operator-> () |
| returns the object being managed | |
| DLLLOCAL const QoreString * | operator* () |
| returns the object being managed | |
| DLLLOCAL QoreString * | giveString () |
| returns a copy of the QoreString that the caller owns | |
safely manages the return values to AbstractQoreNode::getAsString(), stack only, cannot be dynamically allocated
// FMT_NONE gives all information on a single line QoreNodeAsStringHelper str(n, FMT_NONE, xsink); if (*xsink) return 0; printf("str='%s'\n", str->getBuffer());
| DLLLOCAL QoreString* QoreNodeAsStringHelper::giveString | ( | ) | [inline] |
returns a copy of the QoreString that the caller owns
the object may be left empty after this call
References QoreString::copy().
| DLLLOCAL const QoreString* QoreNodeAsStringHelper::operator* | ( | ) | [inline] |
returns the object being managed
| DLLLOCAL const QoreString* QoreNodeAsStringHelper::operator-> | ( | ) | [inline] |
returns the object being managed