Phoenix
Object-oriented orthogonally persistent operating system
|
Class used as return value to indicate successful or failed call. More...
#include <RetCode.h>
Public Types | |
enum | Code { SUCCESS, FAIL, INV_PARAM, NOT_FOUND, NO_MEMORY, NO_RESOURCES } |
Values used to indicate success or error. More... | |
Public Member Functions | |
RetCode (Code retCode=SUCCESS) | |
Construct RetCode object. | |
operator Code () | |
Cast the object to numeric code value. | |
bool | IsOk () |
Check if the status is successful. | |
bool | IsFailed () |
Check if the status indicates failure. |
Class used as return value to indicate successful or failed call.
enum RetCode::Code |
RetCode::RetCode | ( | Code | retCode = SUCCESS | ) | [inline] |
bool RetCode::IsFailed | ( | ) | [inline] |
Check if the status indicates failure.
bool RetCode::IsOk | ( | ) | [inline] |
Check if the status is successful.
RetCode::operator Code | ( | ) | [inline] |
Cast the object to numeric code value.