command.h File Reference
Defines a class for executing commands and getting output. More...
#include <string>
#include <boost/function.hpp>
#include <boost/thread.hpp>
Include dependency graph for command.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | Command |
Executes commands. More... | |
Typedefs | |
typedef boost::function< void(BgCommandStatus status, const std::string &line, int exit_code)> | bg_command_status_handler_function |
Handler for background command status function callback. More... | |
Enumerations | |
enum | BgCommandStatus { BG_CMD_NEWLINE = 0, BG_CMD_END = 1 } |
Typedef Documentation
typedef boost::function<void(BgCommandStatus status, const std::string& line, int exit_code)> bg_command_status_handler_function |
This type of function is called when the background command status callback is done.
- Parameters
-
status status of the command line new line readed exit_code exit code when process ends
Enumeration Type Documentation
enum BgCommandStatus |