COPASI API
4.40.278
|
#include <CCopasiTaskStatus.h>
Public Types | |
enum | State { NoState = 0 , OutputDataStructuresInitialized , Initialized , ProblemCheckfailed , InitializeFailed , Started , Stopped , FinishedSuccesfully , Failed , FailedByParent } |
Public Member Functions | |
CCopasiTaskStatus () | |
const State & | getState () const |
void | print (std::ostream *ostream) const |
void | set (State state) |
void | setInitialized (bool success) |
Static Public Attributes | |
static const std::string | StateString [] |
Protected Attributes | |
State | mState |
This class contains status information of a CCopasiTask. It includes information whether the task is initialized, finished, etc. and also the result status (success or error, also task specific information)
An enum that contains all (exclusive) states a task can be in.
CCopasiTaskStatus::CCopasiTaskStatus | ( | ) |
const CCopasiTaskStatus::State & CCopasiTaskStatus::getState | ( | ) | const |
References mState.
void CCopasiTaskStatus::print | ( | std::ostream * | ostream | ) | const |
void CCopasiTaskStatus::setInitialized | ( | bool | success | ) |
convenience method: sets status to Initialized or InitializeFailed, according to the success flag.
References Initialized, InitializeFailed, and mState.
|
protected |
Referenced by getState(), set(), and setInitialized().
|
static |
String literals for the GUI to display states