nsbaci 1.0
Loading...
Searching...
No Matches
nsbaci::services::RuntimeResult Struct Reference

Result of a runtime operation (step, run, etc.). More...

#include <runtimeService.h>

Inheritance diagram for nsbaci::services::RuntimeResult:
Collaboration diagram for nsbaci::services::RuntimeResult:

Public Member Functions

 RuntimeResult ()
 Default constructor creates a successful result.
 RuntimeResult (std::vector< nsbaci::Error > errs)
 Constructs a result from a vector of errors.
 RuntimeResult (nsbaci::Error error)
 Constructs a failed result from a single error.
 RuntimeResult (RuntimeResult &&) noexcept=default
RuntimeResultoperator= (RuntimeResult &&) noexcept=default
 RuntimeResult (const RuntimeResult &)=default
RuntimeResultoperator= (const RuntimeResult &)=default
Public Member Functions inherited from nsbaci::BaseResult
 BaseResult ()
 Default constructor creates a successful result.
 BaseResult (std::vector< nsbaci::Error > errs)
 Constructs a result from a vector of errors.
 BaseResult (nsbaci::Error error)
 Constructs a failed result from a single error.
 BaseResult (BaseResult &&) noexcept=default
BaseResultoperator= (BaseResult &&) noexcept=default
 BaseResult (const BaseResult &)=default
BaseResultoperator= (const BaseResult &)=default

Public Attributes

bool halted = false
 True if program has terminated.
bool needsInput = false
 True if waiting for user input.
std::string inputPrompt
 Prompt to show for input.
std::string output
 Output produced by this step.
Public Attributes inherited from nsbaci::BaseResult
bool ok
 True if the operation succeeded.
std::vector< nsbaci::Errorerrors
 Errors encountered (empty if ok is true).

Detailed Description

Result of a runtime operation (step, run, etc.).

Constructor & Destructor Documentation

◆ RuntimeResult() [1/2]

nsbaci::services::RuntimeResult::RuntimeResult ( std::vector< nsbaci::Error > errs)
inlineexplicit

Constructs a result from a vector of errors.

Parameters
errsVector of runtime errors.
Here is the call graph for this function:

◆ RuntimeResult() [2/2]

nsbaci::services::RuntimeResult::RuntimeResult ( nsbaci::Error error)
inlineexplicit

Constructs a failed result from a single error.

Parameters
errorThe runtime error that occurred.
Here is the call graph for this function:

The documentation for this struct was generated from the following file: