OFFIS DCMTK
Version 3.6.0
|
abstract base class for condition codes More...
Public Member Functions | |
OFConditionBase () | |
default constructor | |
OFConditionBase (const OFConditionBase &) | |
copy constructor | |
virtual | ~OFConditionBase () |
destructor | |
virtual const OFConditionBase * | clone () const =0 |
this method returns a pointer to a OFConditionBase object containing a clone of this object. | |
virtual unsigned long | codeAndModule () const =0 |
returns a combined code and module for this object. | |
virtual OFStatus | status () const =0 |
returns the status for this object. | |
virtual const char * | text () const =0 |
returns the error message text for this object. | |
virtual OFBool | deletable () const =0 |
checks if this object is deletable, e.g. | |
unsigned short | module () const |
returns the module identifier for this object. | |
unsigned short | code () const |
returns the status code identifier for this object. | |
OFBool | operator== (const OFConditionBase &arg) const |
comparison operator. | |
OFBool | operator!= (const OFConditionBase &arg) const |
comparison operator, not equal. | |
Private Member Functions | |
OFConditionBase & | operator= (const OFConditionBase &arg) |
private unimplemented copy assignment operator | |
|
pure virtual |
this method returns a pointer to a OFConditionBase object containing a clone of this object.
If deletable() is true, the clone must be a deep copy allocated on the heap. If deletable() is false, the clone should be a pointer to this.
Implemented in OFConditionString, and OFConditionConst.
Referenced by OFCondition::operator=().
|
pure virtual |
returns a combined code and module for this object.
code is lower 16 bits, module is upper 16 bits
Implemented in OFConditionString, and OFConditionConst.
Referenced by code(), module(), and operator==().
|
pure virtual |
checks if this object is deletable, e.g.
all instances of this class are allocated on the heap.
Implemented in OFConditionString, and OFConditionConst.
Referenced by OFCondition::operator=(), and OFCondition::~OFCondition().
|
inline |
|
inline |
comparison operator.
Compares status, code and module but not error text.
arg | argument to compare to |
Definition at line 118 of file ofcond.h.
References codeAndModule(), and status().