Inheritance diagram for OFConditionBase:

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 | |
Definition at line 58 of file ofcond.h.
| virtual const OFConditionBase* OFConditionBase::clone | ( | ) | const [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 OFConditionConst, and OFConditionString.
Referenced by OFCondition::operator=().
| virtual unsigned long OFConditionBase::codeAndModule | ( | ) | const [pure virtual] |
returns a combined code and module for this object.
code is lower 16 bits, module is upper 16 bits
Implemented in OFConditionConst, and OFConditionString.
Referenced by code(), module(), and operator==().
| virtual OFBool OFConditionBase::deletable | ( | ) | const [pure virtual] |
checks if this object is deletable, e.g.
all instances of this class are allocated on the heap.
Implemented in OFConditionConst, and OFConditionString.
Referenced by OFCondition::operator=(), and OFCondition::~OFCondition().
| OFBool OFConditionBase::operator== | ( | const OFConditionBase & | arg | ) | const [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().
| OFBool OFConditionBase::operator!= | ( | const OFConditionBase & | arg | ) | const [inline] |