|
Pakman
|
#include <TaskHandler.h>
Public Types | |
| enum | state_t { pending, finished } |
Public Member Functions | |
| TaskHandler (const std::string &input_string) | |
| TaskHandler (TaskHandler &&t) | |
| ~TaskHandler ()=default | |
| state_t | getState () const |
| bool | isPending () const |
| bool | isFinished () const |
| bool | didErrorOccur () const |
| int | getErrorCode () const |
| std::string | getInputString () const |
| std::string | getOutputString () const |
| void | recordOutputAndErrorCode (const std::string &output_string, int error_code) |
A class for representing tasks.
A task represents a simulation job, which consists of spawning a simulator, feeding it some input and retrieving the output.
Definition at line 11 of file TaskHandler.h.
| enum TaskHandler::state_t |
Enumeration type for TaskHandler states.
Definition at line 16 of file TaskHandler.h.
| TaskHandler::TaskHandler | ( | const std::string & | input_string | ) |
Construct from input string.
| input_string | input string to simulator. |
Definition at line 4 of file TaskHandler.cc.
| TaskHandler::TaskHandler | ( | TaskHandler && | t | ) |
Move constructor.
Definition at line 10 of file TaskHandler.cc.
|
default |
Default destructor does nothing.
| bool TaskHandler::didErrorOccur | ( | ) | const |
Definition at line 37 of file TaskHandler.cc.
| int TaskHandler::getErrorCode | ( | ) | const |
Definition at line 60 of file TaskHandler.cc.
| std::string TaskHandler::getInputString | ( | ) | const |
Definition at line 46 of file TaskHandler.cc.
| std::string TaskHandler::getOutputString | ( | ) | const |
Definition at line 53 of file TaskHandler.cc.
| TaskHandler::state_t TaskHandler::getState | ( | ) | const |
Definition at line 19 of file TaskHandler.cc.
| bool TaskHandler::isFinished | ( | ) | const |
Definition at line 31 of file TaskHandler.cc.
| bool TaskHandler::isPending | ( | ) | const |
Definition at line 25 of file TaskHandler.cc.
| void TaskHandler::recordOutputAndErrorCode | ( | const std::string & | output_string, |
| int | error_code | ||
| ) |
Record output and error code.
| output_string | the output string that the simulation job returned. |
| error_code | the error code that the simulation job returned. |
Definition at line 67 of file TaskHandler.cc.