OFConditionBase Class Reference

abstract base class for condition codes More...

Inheritance diagram for OFConditionBase:

OFConditionConst OFConditionString List of all members.

Public Member Functions

 OFConditionBase ()
 default constructor
 OFConditionBase (const OFConditionBase &)
 copy constructor
virtual ~OFConditionBase ()
 destructor
virtual const OFConditionBaseclone () 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

OFConditionBaseoperator= (const OFConditionBase &arg)
 private unimplemented copy assignment operator

Detailed Description

abstract base class for condition codes

Definition at line 58 of file ofcond.h.


Member Function Documentation

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.

Returns:
clone of this object, either deep copy or alias.

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.

Returns:
true if deletable, false otherwise

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.

Parameters:
arg argument to compare to
Returns:
true if equal, false otherwise

Definition at line 118 of file ofcond.h.

References codeAndModule(), and status().

OFBool OFConditionBase::operator!= ( const OFConditionBase arg  )  const [inline]

comparison operator, not equal.

Compares status, code and module but not error text.

Parameters:
arg argument to compare to
Returns:
false if equal, true otherwise

Definition at line 128 of file ofcond.h.

References code(), module(), and status().


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1