OFFIS DCMTK
Version 3.6.0
|
General purpose class for condition codes. More...
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 | |
General purpose class for condition codes.
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.
|
inline |
constructor for condition code with user-defined error text
base | pointer to error base, which must be allocated on the heap. The object pointed to is deleted upon destruction of this object. Pointer must not be NULL. |
Definition at line 314 of file ofcond.h.
References theCondition.
|
inline |
constructor for condition code with global const condition object
base | reference to condition base, which must be guaranteed to exist for the lifetime of this (and every derived) object since it is only referenced but not copied. |
Definition at line 329 of file ofcond.h.
References theCondition.
|
inline |
comparison operator.
Compares status, code and module but not error text.
arg | error to compare to |
Definition at line 435 of file ofcond.h.
References theCondition.
|
inline |
comparison operator.
Compares status, code and module but not error text.
arg | error to compare to |
Definition at line 425 of file ofcond.h.
References theCondition.