class RunCommand
|
A class for running an external command.
More... |
|
|
Public Types
- typedef XorpCallback2<void, RunCommand*, const string&>::RefPtr OutputCallback
- typedef XorpCallback3<void, RunCommand*, bool, const string&>::RefPtr DoneCallback
- typedef XorpCallback2<void, RunCommand*, int>::RefPtr StoppedCallback
Public Methods
typedef XorpCallback2<void, RunCommand*, const string&>::RefPtr OutputCallback | OutputCallback |
typedef XorpCallback3<void, RunCommand*, bool, const string&>::RefPtr DoneCallback | DoneCallback |
typedef XorpCallback2<void, RunCommand*, int>::RefPtr StoppedCallback | StoppedCallback |
Constructor for a given command and its list with arguments.
Parameters:
eventloop | the event loop.
|
command | the command to execute.
|
argument_list | the list with the arguments for the command
to execute.
|
stdout_cb | the callback to call when there is data on the
standard output.
|
stderr_cb | the callback to call when there is data on the
standard error.
|
done_cb | the callback to call when the command is completed.
|
redirect_stderr_to_stdout | if true redirect the stderr to stdout.
|
void set_stopped_cb (StoppedCallback cb)
| set_stopped_cb |
Set the callback to dispatch when the program is stopped.
Parameters:
Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:24 2008, using kdoc 2.0a54+XORP.