#include <TaskResult.h>
Public Member Functions | |
int | error () const |
bool | isDefined () const |
bool | isFail () const |
bool | isSuccess () const |
bool | isTermianted () const |
bool | isUndefined () const |
const bool | operator!= (const TaskResult &o) const |
const bool | operator== (const TaskResult &o) const |
TaskResult () | |
std::string | what () const |
Static Public Member Functions | |
static TaskResult | FAIL (int er=error_start_code, std::string what="FIAL") |
static TaskResult | FAIL (std::string what) |
static int | rerangeErrorCode (int code) |
static TaskResult | SUCCESS () |
static TaskResult | TERMINATED () |
static TaskResult | UNDEF () |
Private Member Functions | |
TaskResult (int er, std::string desc) | |
Private Attributes | |
std::string | description_ |
int | error_ |
Static Private Attributes | |
static const int | error_start_code = 2 |
static const int | preempted_code = 1 |
static const int | undefied_code = INT_MAX |
Definition at line 20 of file TaskResult.h.
decision_making::TaskResult::TaskResult | ( | int | er, |
std::string | desc | ||
) | [inline, private] |
Definition at line 24 of file TaskResult.h.
decision_making::TaskResult::TaskResult | ( | ) | [inline] |
Definition at line 29 of file TaskResult.h.
int decision_making::TaskResult::error | ( | ) | const [inline] |
Definition at line 40 of file TaskResult.h.
static TaskResult decision_making::TaskResult::FAIL | ( | int | er = error_start_code , |
std::string | what = "FIAL" |
||
) | [inline, static] |
Definition at line 31 of file TaskResult.h.
static TaskResult decision_making::TaskResult::FAIL | ( | std::string | what | ) | [inline, static] |
Definition at line 32 of file TaskResult.h.
bool decision_making::TaskResult::isDefined | ( | ) | const [inline] |
Definition at line 38 of file TaskResult.h.
bool decision_making::TaskResult::isFail | ( | ) | const [inline] |
Definition at line 35 of file TaskResult.h.
bool decision_making::TaskResult::isSuccess | ( | ) | const [inline] |
Definition at line 37 of file TaskResult.h.
bool decision_making::TaskResult::isTermianted | ( | ) | const [inline] |
Definition at line 36 of file TaskResult.h.
bool decision_making::TaskResult::isUndefined | ( | ) | const [inline] |
Definition at line 39 of file TaskResult.h.
const bool decision_making::TaskResult::operator!= | ( | const TaskResult & | o | ) | const [inline] |
Definition at line 46 of file TaskResult.h.
const bool decision_making::TaskResult::operator== | ( | const TaskResult & | o | ) | const [inline] |
Definition at line 45 of file TaskResult.h.
static int decision_making::TaskResult::rerangeErrorCode | ( | int | code | ) | [inline, static] |
Definition at line 43 of file TaskResult.h.
static TaskResult decision_making::TaskResult::SUCCESS | ( | ) | [inline, static] |
Definition at line 30 of file TaskResult.h.
static TaskResult decision_making::TaskResult::TERMINATED | ( | ) | [inline, static] |
Definition at line 33 of file TaskResult.h.
static TaskResult decision_making::TaskResult::UNDEF | ( | ) | [inline, static] |
Definition at line 34 of file TaskResult.h.
std::string decision_making::TaskResult::what | ( | ) | const [inline] |
Definition at line 41 of file TaskResult.h.
std::string decision_making::TaskResult::description_ [private] |
Definition at line 23 of file TaskResult.h.
int decision_making::TaskResult::error_ [private] |
Definition at line 22 of file TaskResult.h.
const int decision_making::TaskResult::error_start_code = 2 [static, private] |
Definition at line 26 of file TaskResult.h.
const int decision_making::TaskResult::preempted_code = 1 [static, private] |
Definition at line 27 of file TaskResult.h.
const int decision_making::TaskResult::undefied_code = INT_MAX [static, private] |
Definition at line 25 of file TaskResult.h.