Open Lighting Architecture
0.10.4
|
Indicates the result of a OLA API call.
Result objects are the first argument passed to an API callback function. They indicate if the action succeeded.
Public Member Functions | |
Result (const std::string &error) | |
bool | Success () const |
Indicates the status of the action. If the action failed Error() can be used to fetch the error message. More... | |
const std::string & | Error () const |
Returns the error message if the action failed. More... | |
|
inlineexplicit |
error | the text description of the error. An empty string means the action succeeded. |
|
inline |
Returns the error message if the action failed.
|
inline |
Indicates the status of the action. If the action failed Error() can be used to fetch the error message.