#include <ProcessRunner.h>
Definition at line 34 of file ProcessRunner.h.
Public Member Functions | |
ProcessRunner () | |
ProcessRunner (const String &_cmdline) | |
~ProcessRunner () | |
void | start () |
void | start (const String &cmdline) |
RawInputStream & | errorStream () |
RawInputStream & | outputStream () |
RawOutputStream & | inputStream () |
int | exitCode () |
Returns the exit code for the running process or an exception if it has not finished running. | |
Int32 | pid () |
Returns the process numeric ID as assigned by the OS. | |
void | kill (int signal) |
int | wait () |
bool | isRunning () |
virtual const char * | getClassName () |
Returns the name of the current class. | |
virtual std::string | toString () |
Static Public Member Functions | |
static int | execute (const String &command) |
static int | execute (const String &command, Buffer &_output) |
static void | debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Will print a debug message to the screen. | |
static void | debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Protected Attributes | |
RawInputStream | err |
RawInputStream | out |
RawOutputStream | in |
void * | stack |
std::string | __cls_name |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Object &s) |
xvr2::Platform::ProcessRunner::ProcessRunner | ( | ) |
xvr2::Platform::ProcessRunner::ProcessRunner | ( | const String & | _cmdline | ) |
xvr2::Platform::ProcessRunner::~ProcessRunner | ( | ) |
void xvr2::Platform::ProcessRunner::start | ( | ) |
void xvr2::Platform::ProcessRunner::start | ( | const String & | cmdline | ) |
RawInputStream& xvr2::Platform::ProcessRunner::errorStream | ( | ) |
RawInputStream& xvr2::Platform::ProcessRunner::outputStream | ( | ) |
RawOutputStream& xvr2::Platform::ProcessRunner::inputStream | ( | ) |
int xvr2::Platform::ProcessRunner::exitCode | ( | ) |
Returns the exit code for the running process or an exception if it has not finished running.
Int32 xvr2::Platform::ProcessRunner::pid | ( | ) |
Returns the process numeric ID as assigned by the OS.
void xvr2::Platform::ProcessRunner::kill | ( | int | signal | ) |
int xvr2::Platform::ProcessRunner::wait | ( | ) |
bool xvr2::Platform::ProcessRunner::isRunning | ( | ) |
static int xvr2::Platform::ProcessRunner::execute | ( | const String & | command | ) | [static] |
static int xvr2::Platform::ProcessRunner::execute | ( | const String & | command, | |
Buffer & | _output | |||
) | [static] |
virtual const char* xvr2::Object::getClassName | ( | ) | [virtual, inherited] |
Returns the name of the current class.
static void xvr2::Object::debugmsg | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
Will print a debug message to the screen.
static void xvr2::Object::debugmsgln | ( | Object * | obj, | |
const char * | msg, | |||
int | linenumber = __LINE__ , |
|||
const char * | srcfile = __FILE__ | |||
) | [static, inherited] |
virtual std::string xvr2::Object::toString | ( | ) | [virtual, inherited] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const Object & | s | |||
) | [friend, inherited] |
RawInputStream xvr2::Platform::ProcessRunner::err [protected] |
Definition at line 36 of file ProcessRunner.h.
RawInputStream xvr2::Platform::ProcessRunner::out [protected] |
Definition at line 37 of file ProcessRunner.h.
RawOutputStream xvr2::Platform::ProcessRunner::in [protected] |
Definition at line 38 of file ProcessRunner.h.
void* xvr2::Platform::ProcessRunner::stack [protected] |
Definition at line 39 of file ProcessRunner.h.
std::string xvr2::Object::__cls_name [protected, inherited] |