jigdo API
Last update by Admin on 2010-05-23
XStatus Class Reference
Version of Status which can contain more than 2 values. More...
#include <status.hh>
Public Member Functions | |
XStatus (const Status &x) | |
XStatus (int c) | |
XStatus (const XStatus &x) | |
XStatus & | operator= (const XStatus &x) |
XStatus & | operator= (const Status &x) |
bool | xok () const |
Not calling these ok()/failed() to remind you that this is a XStatus. | |
bool | xfailed () const |
bool | returned (int x) const |
Public Attributes | |
int | code |
Detailed Description
Version of Status which can contain more than 2 values.Explicitly making this a separate class so users (hopefully) notice that there are other states beyond succeeded/failed.
Constructor & Destructor Documentation
XStatus::XStatus | ( | const Status & | x | ) | [inline] |
XStatus::XStatus | ( | int | c | ) | [inline, explicit] |
XStatus::XStatus | ( | const XStatus & | x | ) | [inline] |
Member Function Documentation
References code, and Status::ok().
bool XStatus::xok | ( | ) | const [inline] |
bool XStatus::xfailed | ( | ) | const [inline] |
References code.
bool XStatus::returned | ( | int | x | ) | const [inline] |
References code.
Member Data Documentation
int XStatus::code |
Referenced by operator=(), operator==(), returned(), xfailed(), and xok().
The documentation for this class was generated from the following file:
- util/status.hh
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
