| ContRap-Core | 
Class Console implements the console stream communication with a process. More...
#include <console.h>
| Public Member Functions | |
| Console () | |
| Creates a new console. | |
| ~Console () | |
| Releases memory. | |
| void | start (const std::string &command) | 
| Starts a new console communication by calling a command. | |
| void | stop () | 
| Terminates the console session. | |
| std::string | get_line () | 
| Reads a new line. | |
| std::string | get_message () | 
| Reads from the console till it stops. | |
| bool | is_stopped () | 
| Returns true if console is stopped. | |
| Protected Attributes | |
| FILE * | console | 
| Logger * | logger | 
| Logger. | |
Class Console implements the console stream communication with a process.
A process is started by calling the start() method. The messages written by the process to the standard output can then be obtained one-by-one by calling the get_line() and the get_message() methods.
| crp::Console::Console | ( | ) | 
Creates a new console.
| crp::Console::~Console | ( | ) | 
Releases memory.
| std::string crp::Console::get_line | ( | ) | 
Reads a new line.
| std::string crp::Console::get_message | ( | ) | 
Reads from the console till it stops.
| bool crp::Console::is_stopped | ( | ) |  [inline] | 
Returns true if console is stopped.
| void crp::Console::start | ( | const std::string & | command | ) | 
Starts a new console communication by calling a command.
| command | Command to execute | 
| void crp::Console::stop | ( | ) | 
Terminates the console session.
| FILE* crp::Console::console  [protected] | 
| Logger* crp::Console::logger  [protected] | 
 1.7.3
 1.7.3