DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Defines the return type of task functions. More...
Public Types | |
enum class | ContinueTaskHandlingType : bool { Continue , Terminate } |
Determines whether an instrument should terminate after handling the task. More... | |
enum class | AbortedType : bool { NotAborted , Aborted } |
Determines whether a task has been aborted. More... | |
Public Member Functions | |
constexpr | TaskResultType (const ContinueTaskHandlingType ContinueTaskHandling=ContinueTaskHandlingType::Continue, const AbortedType Aborted=AbortedType::NotAborted, const int ErrorCode=0) noexcept |
Constructs a TaskResultType instance. More... | |
constexpr bool | ShouldContinue () const noexcept |
Determines whether the instrument having handled this task should continue or terminate. More... | |
constexpr bool | HasAborted () const noexcept |
Determines whether this task has been aborted. More... | |
constexpr int | GetErrorCode () const noexcept |
Getter for the error code of an error which occurred during execution of the task function. More... | |
Private Attributes | |
const ContinueTaskHandlingType | ContinueTaskHandling |
Determines whether an instrument should terminate after handling the task. More... | |
const AbortedType | Aborted |
Determines whether a task has been aborted. More... | |
const int | ErrorCode |
DynExp error code from DynExpErrorCodes::DynExpErrorCodes. Anything else than 0 indicates an error. More... | |
Defines the return type of task functions.
Definition at line 823 of file Instrument.h.
|
strong |
Determines whether a task has been aborted.
Enumerator | |
---|---|
NotAborted | The task has not been aborted. |
Aborted |
Definition at line 842 of file Instrument.h.
|
strong |
Determines whether an instrument should terminate after handling the task.
Enumerator | |
---|---|
Continue | Task handling should continue, the instrument does not terminate. |
Terminate | Task handling should not continue, the instrument should terminate. |
Definition at line 829 of file Instrument.h.
|
inlineconstexprnoexcept |
Constructs a TaskResultType
instance.
ContinueTaskHandling | Determines whether an instrument should terminate after handling the task. |
Aborted | Determines whether a task has been aborted. |
ErrorCode | DynExp error code from DynExpErrorCodes::DynExpErrorCodes. Anything else than 0 indicates an error. |
Definition at line 858 of file Instrument.h.
|
inlineconstexprnoexcept |
Getter for the error code of an error which occurred during execution of the task function.
Definition at line 878 of file Instrument.h.
|
inlineconstexprnoexcept |
Determines whether this task has been aborted.
Definition at line 872 of file Instrument.h.
|
inlineconstexprnoexcept |
Determines whether the instrument having handled this task should continue or terminate.
Definition at line 866 of file Instrument.h.
|
private |
Determines whether a task has been aborted.
The task has been aborted.
Definition at line 882 of file Instrument.h.
|
private |
Determines whether an instrument should terminate after handling the task.
Definition at line 881 of file Instrument.h.
|
private |
DynExp error code from DynExpErrorCodes::DynExpErrorCodes. Anything else than 0 indicates an error.
Definition at line 883 of file Instrument.h.