Encapsulates all of the possible result states for a translation operation.
More...
#include <TranslationResult.h>
Encapsulates all of the possible result states for a translation operation.
For simplicity, implementations of Translator::Translate() can return a result value by directly referencing the enum, e.g.:
Translate(...)
{
}
@ Success
Translation succeeded.
Definition: TranslationResult.h:39
◆ State
The possible values that a TranslationResult may take.
Enumerator |
---|
Success | Translation succeeded.
|
Failure | Translation failed (for any reason)
|
Aborted | Translation has been aborted, as requested by the user or the system.
|
@ Failure
Translation failed (for any reason)
Definition: TranslationResult.h:41
@ Aborted
Translation has been aborted, as requested by the user or the system.
Definition: TranslationResult.h:43
◆ TranslationResult() [1/2]
Default constructor initializes state to Success.
◆ TranslationResult() [2/2]
Constructs (implicitly) from given state.
◆ operator State()
Implicit conversion operator to the State enum.