Public Member Functions | |
OFCondition (OFConditionString *base) | |
constructor for condition code with user-defined error text | |
OFCondition (const OFConditionConst &base=ECC_Normal) | |
constructor for condition code with global const condition object | |
OFCondition (const OFCondition &arg) | |
copy constructor | |
~OFCondition () | |
destructor | |
OFCondition & | operator= (const OFCondition &arg) |
copy assignment operator | |
unsigned short | module () const |
returns the module identifier for this object. | |
unsigned short | code () const |
returns the status code identifier for this object. | |
OFStatus | status () const |
returns the status for this object. | |
const char * | text () const |
returns the error message text for this object. | |
OFBool | good () const |
returns true if status is OK | |
OFBool | bad () const |
returns true if status is not OK, i. e. error or failure | |
OFBool | operator== (const OFCondition &arg) const |
comparison operator. | |
OFBool | operator!= (const OFCondition &arg) const |
comparison operator. | |
Private Attributes | |
const OFConditionBase * | theCondition |
pointer to the condition base object |
Objects of this class can be efficiently passed by value since they only contain a single pointer and no virtual methods. The condition code is maintained by the object of class OFConditionBase pointed to.
Definition at line 309 of file ofcond.h.
|
constructor for condition code with user-defined error text
Definition at line 318 of file ofcond.h. References theCondition. |
|
constructor for condition code with global const condition object
Definition at line 333 of file ofcond.h. References theCondition. |
|
comparison operator. Compares status, code and module but not error text.
Definition at line 439 of file ofcond.h. References theCondition. |
|
comparison operator. Compares status, code and module but not error text.
Definition at line 429 of file ofcond.h. References theCondition. |