xvr2::Platform::ProcessRunner Class Reference

#include <ProcessRunner.h>

Inheritance diagram for xvr2::Platform::ProcessRunner:

Inheritance graph
[legend]

List of all members.


Detailed Description

Generalized process execution class, it may work just like when you call the c library's system() function or even better, I may let you manipulate interactive commands as well.

Definition at line 34 of file ProcessRunner.h.


Public Member Functions

 ProcessRunner ()
 ProcessRunner (const String &_cmdline)
 ~ProcessRunner ()
void start ()
void start (const String &cmdline)
RawInputStreamerrorStream ()
RawInputStreamoutputStream ()
RawOutputStreaminputStream ()
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)

Constructor & Destructor Documentation

xvr2::Platform::ProcessRunner::ProcessRunner (  ) 

xvr2::Platform::ProcessRunner::ProcessRunner ( const String _cmdline  ) 

xvr2::Platform::ProcessRunner::~ProcessRunner (  ) 


Member Function Documentation

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]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Object s 
) [friend, inherited]


Member Data Documentation

Definition at line 36 of file ProcessRunner.h.

Definition at line 37 of file ProcessRunner.h.

Definition at line 38 of file ProcessRunner.h.

Definition at line 39 of file ProcessRunner.h.

std::string xvr2::Object::__cls_name [protected, inherited]

Definition at line 30 of file Object.h.


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

Generated on Fri Jun 20 22:56:04 2008 for X-VR2 SDK by  doxygen 1.5.5