feisty meow concerns codebase
2.140
|
Outcomes describe the state of completion for an operation. More...
#include <outcome.h>
Public Member Functions | |
outcome (int value=0) | |
Represents the completion of an operation as a particular "value". More... | |
~outcome () | |
destructor resets outcome value. More... | |
bool | equal_to (const outcome &to_compare) const |
Returns true if this outcome is equal to "to_compare". More... | |
bool | operator== (int to_compare) const |
Returns true if this outcome is equal to the integer "to_compare". More... | |
int | value () const |
int | packed_size () const |
a convenience function for those packing outcomes. More... | |
Outcomes describe the state of completion for an operation.
These are an extremely simple representation of a non-exceptional exit value as an integer. The range of expression is from 0 to MAXINT. Outcomes are meant to represent the category of 'how' the operation completed; they do not carry along any results of 'what' was produced.
|
inline |
Represents the completion of an operation as a particular "value".
The outcomes partition the input space of the operation and represent the different conclusions possible during processing. Values for outcomes must be maintained on a system-wide basis as unique identifiers for them to be meaningful. Note that zero is reserved as a default outcome value. This usually translates to an outcome of OKAY.
|
inline |
|
inline |
|
inline |
|
inline |
a convenience function for those packing outcomes.
this is inconveniently hard-coded, since packing is only available in the structures library and not at the base.
Definition at line 54 of file outcome.h.
Referenced by octopi::unhandled_request::packed_size().
|
inline |
Definition at line 51 of file outcome.h.
Referenced by application::launch_manager::outcome_name(), filesystem::heavy_file_operations::outcome_name(), textual::xml_generator::outcome_name(), cromp::cromp_common::outcome_name(), cromp::cromp_transaction::outcome_name(), sockets::spocket::outcome_name(), sockets::communication_commons::outcome_name(), basis::common::outcome_name(), octopi::unhandled_request::pack(), octopi::file_transfer_infoton::pack(), cromp::cromp_common::send_buffer(), octopi::unhandled_request::text_form(), and octopi::security_infoton::text_form().