Horizon
|
To signal back to the core what the Tool did, a Tool returns a ToolResponse. More...
#include <tool.hpp>
Public Types | |
enum | Result { NOP, END, COMMIT, REVERT, NOP, END, COMMIT, REVERT } |
enum | Result { NOP, END, COMMIT, REVERT, NOP, END, COMMIT, REVERT } |
Static Public Member Functions | |
static ToolResponse | end () |
Use this if you're done. More... | |
static ToolResponse | commit () |
static ToolResponse | revert () |
static ToolResponse | next (Result res, ToolID t, std::unique_ptr< ToolData > data=nullptr) |
If you want another Tool to be launched you've finished, use this one. | |
static ToolResponse | end () |
Use this if you're done. More... | |
static ToolResponse | commit () |
static ToolResponse | revert () |
static ToolResponse | next (Result res, ToolID t, std::unique_ptr< ToolData > data=nullptr) |
If you want another Tool to be launched you've finished, use this one. | |
Public Attributes | |
ToolID | next_tool |
std::unique_ptr< ToolData > | data = nullptr |
Result | result = Result::NOP |
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
|
inlinestatic |
Use this if you're done.
The Core will then delete the active tool and initiate a rebuild.
|
inlinestatic |
Use this if you're done.
The Core will then delete the active tool and initiate a rebuild.