|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Defines the return type of task functions. More...
#include <Instrument.h>
Public Types | |
| enum class | ContinuationType : bool { Continue , Terminate } |
| Determines whether an instrument should terminate after handling a task. More... | |
| enum class | AbortedType : bool { NotAborted , Aborted } |
| Determines whether a task has been aborted. More... | |
Public Member Functions | |
| constexpr | TaskResultType (const ContinuationType Continue=ContinuationType::Continue, const AbortedType Aborted=AbortedType::NotAborted, const int ErrorCode=0) noexcept |
Constructs a TaskResultType instance. | |
| constexpr bool | ShouldContinue () const noexcept |
| Determines whether the instrument having handled this task should continue or terminate. | |
| constexpr InstrumentBase::TaskHandlingContinuationType | ToTaskHandlingContinuationType () const noexcept |
Converts Continue to InstrumentBase::TaskHandlingContinuationType. | |
| constexpr bool | HasAborted () const noexcept |
| Determines whether this task has been aborted. | |
| constexpr int | GetErrorCode () const noexcept |
| Getter for the error code of an error which occurred during execution of the task function. | |
Private Attributes | |
| const ContinuationType | Continue |
| Determines whether an instrument should terminate after handling a task. | |
| const AbortedType | Aborted |
| Determines whether a task has been aborted. | |
| const int | ErrorCode |
| DynExp error code from DynExpErrorCodes::DynExpErrorCodes. Anything else than 0 indicates an error. | |
Defines the return type of task functions.
Definition at line 864 of file Instrument.h.
|
strong |
Determines whether a task has been aborted.
| Enumerator | |
|---|---|
| NotAborted | The task has not been aborted. |
| Aborted | The task has been aborted. |
Definition at line 878 of file Instrument.h.
|
strong |
Determines whether an instrument should terminate after handling a 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 870 of file Instrument.h.
|
inlineconstexprnoexcept |
Constructs a TaskResultType instance.
| Continue | Determines whether an instrument should terminate after handling a 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 889 of file Instrument.h.
|
inlineconstexprnoexcept |
Getter for the error code of an error which occurred during execution of the task function.
Definition at line 915 of file Instrument.h.
|
inlineconstexprnoexcept |
Determines whether this task has been aborted.
Definition at line 909 of file Instrument.h.
|
inlineconstexprnoexcept |
Determines whether the instrument having handled this task should continue or terminate.
Definition at line 897 of file Instrument.h.
|
constexprnoexcept |
Converts Continue to InstrumentBase::TaskHandlingContinuationType.
InstrumentBase::TaskHandlingContinuationType. Definition at line 490 of file Instrument.cpp.
|
private |
Determines whether a task has been aborted.
Definition at line 919 of file Instrument.h.
|
private |
Determines whether an instrument should terminate after handling a task.
Definition at line 918 of file Instrument.h.
|
private |
DynExp error code from DynExpErrorCodes::DynExpErrorCodes. Anything else than 0 indicates an error.
Definition at line 920 of file Instrument.h.