#include <OSCommand.h>
Definition at line 55 of file OSCommand.h.
cmlabs::OSCommand::OSCommand | ( | ) |
Definition at line 33 of file OSCommand.cpp.
Definition at line 37 of file OSCommand.cpp.
cmlabs::OSCommand::~OSCommand | ( | ) |
Definition at line 43 of file OSCommand.cpp.
Object* cmlabs::OSCommand::clone | ( | ) | const [virtual] |
bool cmlabs::OSCommand::unitTest | ( | ) | [virtual] |
bool cmlabs::OSCommand::setBinary | ( | ) |
Definition at line 121 of file OSCommand.cpp.
bool cmlabs::OSCommand::setASCII | ( | ) |
Definition at line 126 of file OSCommand.cpp.
JString cmlabs::OSCommand::getCommand | ( | ) |
Definition at line 131 of file OSCommand.cpp.
bool cmlabs::OSCommand::start | ( | ) |
Definition at line 693 of file OSCommand.cpp.
bool cmlabs::OSCommand::terminate | ( | ) |
Definition at line 821 of file OSCommand.cpp.
bool cmlabs::OSCommand::restart | ( | ) |
Definition at line 85 of file OSCommand.cpp.
bool cmlabs::OSCommand::hasBeenStarted | ( | ) |
Definition at line 867 of file OSCommand.cpp.
bool cmlabs::OSCommand::isRunning | ( | ) |
Definition at line 871 of file OSCommand.cpp.
bool cmlabs::OSCommand::hasTerminated | ( | ) |
Definition at line 141 of file OSCommand.cpp.
bool cmlabs::OSCommand::waitForProcessToFinish | ( | int | timeout | ) |
Definition at line 853 of file OSCommand.cpp.
int cmlabs::OSCommand::getProcID | ( | ) |
Get the OS process ID.
Reimplemented from cmlabs::Object.
Definition at line 160 of file OSCommand.cpp.
bool cmlabs::OSCommand::writeToStandardInput | ( | const JString & | text | ) |
Definition at line 182 of file OSCommand.cpp.
bool cmlabs::OSCommand::writeToStandardInput | ( | char * | bytes, | |
int | len | |||
) |
Definition at line 906 of file OSCommand.cpp.
bool cmlabs::OSCommand::hasOutput | ( | ) |
Definition at line 164 of file OSCommand.cpp.
int cmlabs::OSCommand::getOutputCharCount | ( | ) |
Definition at line 172 of file OSCommand.cpp.
bool cmlabs::OSCommand::hasErrors | ( | ) |
Definition at line 168 of file OSCommand.cpp.
int cmlabs::OSCommand::getErrorCharCount | ( | ) |
Definition at line 177 of file OSCommand.cpp.
int cmlabs::OSCommand::getReturnCode | ( | ) |
Definition at line 135 of file OSCommand.cpp.
JString cmlabs::OSCommand::getStartupDir | ( | ) |
Definition at line 156 of file OSCommand.cpp.
JString cmlabs::OSCommand::getCurrentOutput | ( | ) |
Definition at line 186 of file OSCommand.cpp.
JString cmlabs::OSCommand::getCurrentError | ( | ) |
Definition at line 191 of file OSCommand.cpp.
JString cmlabs::OSCommand::getNewOutput | ( | ) |
Definition at line 196 of file OSCommand.cpp.
JString cmlabs::OSCommand::getNewError | ( | ) |
Definition at line 208 of file OSCommand.cpp.
JString cmlabs::OSCommand::readOutputLine | ( | int | timeout | ) |
Definition at line 220 of file OSCommand.cpp.
Collection cmlabs::OSCommand::readCurrentLines | ( | ) |
Definition at line 250 of file OSCommand.cpp.
char * cmlabs::OSCommand::readOutputBytes | ( | int | length, | |
int * | readcount, | |||
int | timeout = 0 | |||
) |
Definition at line 282 of file OSCommand.cpp.
JString cmlabs::OSCommand::waitForProcessToFinishAndGetOutput | ( | int | timeout | ) |
Definition at line 261 of file OSCommand.cpp.
JString cmlabs::OSCommand::waitForProcessToFinishAndGetError | ( | int | timeout | ) |
Definition at line 271 of file OSCommand.cpp.
JTime cmlabs::OSCommand::getStartedTime | ( | ) |
Definition at line 147 of file OSCommand.cpp.
JTime cmlabs::OSCommand::getEndedTime | ( | ) |
Definition at line 151 of file OSCommand.cpp.
bool cmlabs::OSCommand::init | ( | ) | [private] |
Definition at line 49 of file OSCommand.cpp.
int cmlabs::OSCommand::readIntoBuffers | ( | ) | [private] |
Definition at line 919 of file OSCommand.cpp.
bool cmlabs::OSCommand::resizeOutputBuffer | ( | int | max | ) | [private] |
Definition at line 321 of file OSCommand.cpp.
bool cmlabs::OSCommand::resizeErrorBuffer | ( | int | max | ) | [private] |
Definition at line 338 of file OSCommand.cpp.
bool cmlabs::OSCommand::cleanUp | ( | ) | [private] |
Definition at line 835 of file OSCommand.cpp.
Definition at line 108 of file OSCommand.h.
Definition at line 109 of file OSCommand.h.
Definition at line 110 of file OSCommand.h.
Definition at line 111 of file OSCommand.h.
Definition at line 112 of file OSCommand.h.
JString cmlabs::OSCommand::command [private] |
Definition at line 115 of file OSCommand.h.
int cmlabs::OSCommand::procID [private] |
Definition at line 116 of file OSCommand.h.
int cmlabs::OSCommand::returncode [private] |
Definition at line 117 of file OSCommand.h.
bool cmlabs::OSCommand::binary [private] |
Definition at line 118 of file OSCommand.h.
char* cmlabs::OSCommand::outbuffer [private] |
Definition at line 126 of file OSCommand.h.
int cmlabs::OSCommand::outbuffercount [private] |
Definition at line 127 of file OSCommand.h.
int cmlabs::OSCommand::outbuffermax [private] |
Definition at line 128 of file OSCommand.h.
char* cmlabs::OSCommand::errbuffer [private] |
Definition at line 129 of file OSCommand.h.
int cmlabs::OSCommand::errbuffercount [private] |
Definition at line 130 of file OSCommand.h.
int cmlabs::OSCommand::errbuffermax [private] |
Definition at line 131 of file OSCommand.h.
JString cmlabs::OSCommand::outputHistory [private] |
Definition at line 133 of file OSCommand.h.
JString cmlabs::OSCommand::errorHistory [private] |
Definition at line 134 of file OSCommand.h.
JTime cmlabs::OSCommand::startedTime [private] |
Definition at line 135 of file OSCommand.h.
JTime cmlabs::OSCommand::endedTime [private] |
Definition at line 136 of file OSCommand.h.
FILE* cmlabs::OSCommand::proc_stdin [private] |
Definition at line 145 of file OSCommand.h.
FILE* cmlabs::OSCommand::proc_stdout [private] |
Definition at line 146 of file OSCommand.h.
FILE* cmlabs::OSCommand::proc_stderr [private] |
Definition at line 147 of file OSCommand.h.
int cmlabs::OSCommand::stdin_pipe[2] [private] |
Definition at line 149 of file OSCommand.h.
int cmlabs::OSCommand::stdout_pipe[2] [private] |
Definition at line 150 of file OSCommand.h.
int cmlabs::OSCommand::stderr_pipe[2] [private] |
Definition at line 151 of file OSCommand.h.