|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Outcome of one stage execution. More...
#include <stages.hpp>

Static Public Member Functions | |
| static StageResult | success (std::string message={}) |
| static StageResult | success (std::string message, std::vector< StageArtifact > outputs) |
| static StageResult | failure (std::string message) |
| static StageResult | invalid (std::string message) |
| static StageResult | cancel (std::string message="cancelled") |
Public Attributes | |
| bool | ok = false |
| The stage completed and wrote its outputs. | |
| bool | cancelled = false |
| The stage stopped early on a cancel request. | |
| bool | invalid_input = false |
| The request was refused before/without doing the work because an input or a parameter was invalid, as opposed to the stage failing part-way through. | |
| std::string | message |
| Human-readable summary or failure reason. | |
| std::vector< StageArtifact > | outputs |
| What this run actually wrote. | |
Outcome of one stage execution.
Definition at line 88 of file stages.hpp.
|
static |
References message.
|
static |
References message.
|
static |
References message.
|
static |
|
static |
References message.
| bool reusex::pipeline::StageResult::cancelled = false |
The stage stopped early on a cancel request.
Definition at line 90 of file stages.hpp.
| bool reusex::pipeline::StageResult::invalid_input = false |
The request was refused before/without doing the work because an input or a parameter was invalid, as opposed to the stage failing part-way through.
Front ends need the distinction: rux returns INVALID_ARGUMENT rather than a generic error, and an HTTP front end would answer 400, not 500. Always accompanied by ok == false.
Definition at line 96 of file stages.hpp.
Referenced by rux::exit_code_for().
| std::string reusex::pipeline::StageResult::message |
| bool reusex::pipeline::StageResult::ok = false |
The stage completed and wrote its outputs.
Definition at line 89 of file stages.hpp.
Referenced by rux::exit_code_for().
| std::vector<StageArtifact> reusex::pipeline::StageResult::outputs |
What this run actually wrote.
Only populated on ok == true, and only with artifacts the stage can attest to having written on this run — a name that merely exists in the project afterwards is not reported.
Definition at line 101 of file stages.hpp.
Referenced by success().