QElectroTech
0.8-dev
|
#include <qetresult.h>
Public Member Functions | |
QETResult () | |
QETResult (const QString &error_message, bool=false) | |
virtual | ~QETResult () |
bool | isOk () const |
void | setResult (bool) |
QString | errorMessage () const |
void | setErrorMessage (const QString &) |
Private Attributes | |
bool | result_ |
Embedded boolean value. More... | |
QString | error_message_ |
Embedded error message, typically used to explain what failed to users. More... | |
This class represents the result of a lambda operation. Technically, it is a mere boolean+error message pair.
QETResult::QETResult | ( | ) |
Construct a default "true" QET result without an error message.
QETResult::QETResult | ( | const QString & | error_message, |
bool | result = false |
||
) |
Construct a QET result embedding error_message and result (defaults to false).
|
virtual |
Destructor
QString QETResult::errorMessage | ( | ) | const |
bool QETResult::isOk | ( | ) | const |
void QETResult::setErrorMessage | ( | const QString & | error_message | ) |
Embed error_message wihthin this result.
void QETResult::setResult | ( | bool | result | ) |
Embed result.
|
private |
Embedded error message, typically used to explain what failed to users.
|
private |
Embedded boolean value.