![]() |
Diana Software
|
singleton that manage diana status More...
Public Types | |
| enum | ProcessStatus_t { QRunning_s , QError_s , QExiting_s } |
| available states More... | |
Public Member Functions | |
| virtual | ~QDianaProcessStatus () |
| volatile ProcessStatus_t | GetState () const |
| get diana status More... | |
| volatile bool | isRunning () const |
| volatile bool | isError () const |
| volatile bool | isExiting () const |
| const std::string & | GetError () const |
| get error string More... | |
Public Member Functions inherited from QNamed | |
| QNamed () | |
| QNamed (const std::string &Name) | |
| virtual | ~QNamed () |
| const std::string & | GetName () const |
| void | SetName (const std::string &name) |
Static Public Member Functions | |
| static QDianaProcessStatus & | GetInstance () |
| get instance More... | |
Private Member Functions | |
| QDianaProcessStatus () | |
| void | SetState (const ProcessStatus_t s) |
| change process status according to detected signal More... | |
| void | SetError (const std::string &s) |
| set error string according to detected signal More... | |
Private Member Functions inherited from QId | |
| QId () | |
| QId (int id) | |
| virtual | ~QId () |
| void | SetId (int id) |
| int | GetId () const |
Private Attributes | |
| ProcessStatus_t | state |
| std::string | fError |
Friends | |
| void | ProcessControlSignalHandler (int) |
singleton that manage diana status
Definition at line 31 of file QDianaProcessStatus.hh.
available states
| Enumerator | |
|---|---|
| QRunning_s | Default state |
| QError_s | Set when SIGSEGV or SIGFPE is detected |
| QExiting_s | Set when SIGINT (Ctrl-C) is detected |
Definition at line 34 of file QDianaProcessStatus.hh.
|
inlinevirtual |
Definition at line 42 of file QDianaProcessStatus.hh.
|
private |
Definition at line 29 of file QDianaProcessStatus.cc.
References ProcessControlSignalHandler, s1, and SetError().
|
inline |
|
static |
get instance
Definition at line 21 of file QDianaProcessStatus.cc.
|
inline |
|
inline |
Definition at line 49 of file QDianaProcessStatus.hh.
|
inline |
Definition at line 50 of file QDianaProcessStatus.hh.
References QExiting_s, and state.
|
inline |
Definition at line 48 of file QDianaProcessStatus.hh.
References QRunning_s, and state.
|
inlineprivate |
set error string according to detected signal
| s | error string |
Definition at line 71 of file QDianaProcessStatus.hh.
References fError.
Referenced by QDianaProcessStatus().
|
inlineprivate |
change process status according to detected signal
| s | new process status |
Definition at line 65 of file QDianaProcessStatus.hh.
References state.
|
friend |
Definition at line 42 of file QDianaProcessStatus.cc.
Referenced by QDianaProcessStatus().
|
private |
Definition at line 59 of file QDianaProcessStatus.hh.
Referenced by GetError(), and SetError().
|
mutableprivate |
Definition at line 58 of file QDianaProcessStatus.hh.
Referenced by GetState(), isError(), isExiting(), isRunning(), and SetState().