Base class for solver processes.
More...
#include <include/dlvhex2/Process.h>
Public Member Functions |
virtual | ~Process () |
| Destructor.
|
virtual void | addOption (const std::string &o)=0 |
| Adds an option to the commandline.
|
virtual std::string | path () const =0 |
| Returns the executable command.
|
virtual std::vector< std::string > | commandline () const =0 |
| Returns the whole reasoner commandline call.
|
virtual void | spawn ()=0 |
| Instantiates a new process spawned from this one.
|
virtual void | spawn (const std::vector< std::string > &c)=0 |
| Instantiates a new process spawned from this one using a given commandline string.
|
virtual void | endoffile ()=0 |
| Sends EOF to the process.
|
virtual int | close (bool kill=false)=0 |
| Waits for the process to terminate.
|
virtual std::ostream & | getOutput ()=0 |
| Retrieve the output stream of the process.
|
virtual std::istream & | getInput ()=0 |
| Retrieve the input stream of the process.
|
Detailed Description
Base class for solver processes.
Definition at line 50 of file Process.h.
Constructor & Destructor Documentation
Member Function Documentation
Adds an option to the commandline.
- Returns:
- o Option to add.
Implemented in DLVProcess.
Waits for the process to terminate.
- Parameters:
-
kill | If true the child process will be killed, otherwise the method waits. |
- Returns:
- Return code of the process.
Implemented in DLVProcess.
Returns the whole reasoner commandline call.
- Returns:
- Command separated into executable and options.
Implemented in DLVProcess.
Sends EOF to the process.
Implemented in DLVProcess.
Retrieve the input stream of the process.
- Returns:
- Input stream.
Implemented in DLVProcess.
Retrieve the output stream of the process.
- Returns:
- Output stream.
Implemented in DLVProcess.
Returns the executable command.
- Returns:
- Reasoner executable command.
Implemented in DLVProcess.
Instantiates a new process spawned from this one.
Implemented in DLVProcess.
virtual void Process::spawn |
( |
const std::vector< std::string > & |
c | ) |
[pure virtual] |
Instantiates a new process spawned from this one using a given commandline string.
- Parameters:
-
Commandline | executed by the new process. |
Implemented in DLVProcess.
The documentation for this class was generated from the following file: