|
dca_interface
6.3.4
|
#include <base_classes.h>
Standard function result.
This class encapsulates the result of a function call and provides a common behavior similar to a simple return code of type boolean. Functions that return a FunctionResult do never throw a DCA exception.
Definition at line 147 of file base_classes.h.
Public Member Functions | |
| void | setReturnCode (DCA_RESULT_TYPE value) |
| Sets the return code. More... | |
| operator bool () const | |
| Indicates whether or not an operation has been completed successfully. | |
| std::string | getDescription () const |
| Returns the description for the error or warning. More... | |
| DCA_RESULT_TYPE | getReturnCode () const |
| Returns the last error code (if any). More... | |
| void dca::FunctionResult::setReturnCode | ( | DCA_RESULT_TYPE | value | ) |
Sets the return code.
| [in] | value | The return code that should be set |
| std::string dca::FunctionResult::getDescription | ( | ) | const |
Returns the description for the error or warning.
| DCA_RESULT_TYPE dca::FunctionResult::getReturnCode | ( | ) | const |
Returns the last error code (if any).
1.8.18