SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Go to the documentation of this file.
11 #ifndef smtk_task_State_h
12 #define smtk_task_State_h
14 #include "smtk/CoreExports.h"
41 static std::array<std::string, 5> names{
42 {
"irrelevant",
"unavailable",
"incomplete",
"completable",
"completed" }
44 return names[
static_cast<int>(s)];
56 return std::tolower(c);
95 #endif // smtk_task_State_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
@ Completable
The task is available and accomplished but has not been marked complete.
State stateEnum(const std::string &s, bool *valid=nullptr)
A type-conversion operation to cast strings to enumerants.
Definition: State.h:48
@ Unavailable
The task's dependencies are unmet.
std::ostream & operator<<(std::ostream &os, const State &s)
States may be appended to streams.
Definition: State.h:86
State
The set of states that a task may take on.
Definition: State.h:29
@ Completed
The task has been marked completed by the user.
@ Irrelevant
The user's work in prior tasks mean this task needs no user input.
@ Incomplete
The task is available but its objective is not accomplished.
std::string stateName(const State &s)
A type-conversion operation to cast enumerants to strings.
Definition: State.h:39
Macros for dealing with shared-pointer classes.