safely manages QoreProgram objects More...
#include <QoreProgram.h>
Public Member Functions | |
DLLLOCAL | QoreProgramHelper (ExceptionSink &xs) |
creates the QoreProgram object: DEPRECATED: use QoreProgram(ExceptionSink&, int64) instead | |
DLLLOCAL | QoreProgramHelper (int64 parse_options, ExceptionSink &xs) |
creates the QoreProgram object and sets the parse options | |
DLLLOCAL | ~QoreProgramHelper () |
waits until the QoreProgram object is done executing and then dereferences the object | |
DLLLOCAL QoreProgram * | operator-> () |
returns the QoreProgram object being managed | |
DLLLOCAL QoreProgram * | operator* () |
returns the QoreProgram object being managed |
safely manages QoreProgram objects
DLLLOCAL QoreProgramHelper::~QoreProgramHelper | ( | ) | [inline] |
waits until the QoreProgram object is done executing and then dereferences the object
QoreProgram objects are deleted when there reference count reaches 0.
References QoreProgram::waitForTerminationAndDeref().