Public Types | |
enum | ProcessStatus_t { QRunning_s, QError_s, QExiting_s } |
available states More... | |
Public Member Functions | |
volatile ProcessStatus_t | GetState () const |
get diana status | |
volatile bool | isRunning () const |
volatile bool | isError () const |
volatile bool | isExiting () const |
const std::string & | GetError () const |
get error string | |
Static Public Member Functions | |
static QDianaProcessStatus & | GetInstance () |
get instance | |
Private Member Functions | |
void | SetState (const ProcessStatus_t s) |
change process status according to detected signal | |
void | SetError (const std::string &s) |
set error string according to detected signal | |
Private Attributes | |
ProcessStatus_t | state |
std::string | fError |
Friends | |
void | ProcessControlSignalHandler (int) |
void QDianaProcessStatus::SetState | ( | const ProcessStatus_t | s | ) | [inline, private] |
change process status according to detected signal
s | new process status |
void QDianaProcessStatus::SetError | ( | const std::string & | s | ) | [inline, private] |
set error string according to detected signal
s | error string |