#include <xsi_status.h>
Inheritance diagram for CStatus:

Public Types |
|
| enum | Code { Undefined = 0xFFFFFFFF, OK = 0, False = 1, Fail = 0x80004005L, InvalidArgument = 0x80070057L, OutOfMemory = 0x8007000EL, AccessDenied = 0x80070005L, Unexpected = 0x8000FFFFL, NotImpl = 0x80004001L, MemberNotFound = 0x80020003L, Abort = 0x80004004L } |
| Error code enumerator. More... |
|
Public Member Functions |
|
| CStatus (Code in_code=OK) | |
| Code | GetCode () const |
| bool | Succeeded () const |
| void | PutCode (Code in_code) |
| CString | GetDescription () const |
| CStatus & | operator= (Code in_code) |
| bool | operator== (const CStatus &rhs) const |
| bool | operator== (Code rhs) const |
| bool | operator!= (const CStatus &rhs) const |
| bool | operator!= (Code rhs) const |
| void | AssertSucceeded (const CString &in_strText=CString()) const |
The error codes use the same values as the standard HRESULT error codes on Windows.
| enum Code |
Error code enumerator.
| Undefined | Undefined |
| OK | OK |
| False | False. Operator is considered to have Succeeded, but with no result. |
| Fail | Fail |
| InvalidArgument | InvalidArgument |
| OutOfMemory | OutOfMemory |
| AccessDenied | AccessDenied |
| Unexpected | Unexpected |
| NotImpl | NotImpl |
| MemberNotFound | MemberNotFound |
| Abort | Abort |
Returns true if the status is either OK or False
Sets the error code type
| in_code | Error code |
Gets the status code description.
Reimplemented in CScriptErrorDescriptor.
Sets the CStatus object with a given error code.
| in_code | Error code |
The equality operator that takes another CStatus object.
| rhs | status object |
| bool operator== | ( | Code | rhs | ) | const |
The equality operator that takes a CStatus::Code.
| rhs | status code |
The inequality operator that takes a CStatus object.
| rhs | status object |
| bool operator!= | ( | Code | rhs | ) | const |
The inequality operator that takes a CStatus::Code.
| rhs | status code |
Assert the current status code is OK or False.
| in_strText | Optional message logs if the function doesn't assert. |