Kallisto Linux API
Library for interacting with Kallisto devices
|
Class that encapsulates a result. More...
#include <kallisto_error.hpp>
Public Member Functions | |
~KallistoDetailedResult () | |
KallistoDetailedResult (const KallistoDetailedResult &other) | |
KallistoDetailedResult (KallistoDetailedResult &&other) | |
KallistoDetailedResult & | operator= (const KallistoDetailedResult &other) |
KallistoDetailedResult & | operator= (KallistoDetailedResult &&other) |
std::string | toString () const |
KallistoResult | getResult () const |
std::string | getMessage () const |
Static Public Member Functions | |
static KallistoDetailedResult | build (const KallistoResult result) |
static KallistoDetailedResult | build (const KallistoResult result, const std::string message) |
static std::string | toString (const KallistoResult result) |
Class that encapsulates a result.
Destructor
KallistoDetailedResult | ( | const KallistoDetailedResult & | other | ) |
Copy constructor
KallistoDetailedResult | ( | KallistoDetailedResult && | other | ) |
Move constructor
|
static |
Builds an object of this class.
result | The desired result. |
|
static |
Builds an object of this class with an message.
result | The desired result. |
message | The desired message. |
std::string getMessage | ( | ) | const |
Returns optional message.
KallistoResult getResult | ( | ) | const |
Returns result.
KallistoDetailedResult& operator= | ( | const KallistoDetailedResult & | other | ) |
Copy assignment operator
KallistoDetailedResult& operator= | ( | KallistoDetailedResult && | other | ) |
Move assignment operator
|
static |
Parses the passed result to string.
result | The desired result. |
std::string toString | ( | ) | const |
Parses to string.