DCMTK
Version 3.6.7
OFFIS DICOM Toolkit
|
OFerror_category serves as the base class for specific error category types, such as OFsystem_category. More...
Public Member Functions | |
OFerror_category () | |
Default constructor, used by derived classes. | |
virtual | ~OFerror_category () |
Virtual destructor, does nothing. | |
virtual const char * | name () const =0 |
Obtains the name of the category, for example "generic". More... | |
virtual OFString | message (int code) const =0 |
Constructs an explanatory string for an error code. More... | |
OFerror_category serves as the base class for specific error category types, such as OFsystem_category.
It is possible to make your own error_category class. The objects of error category classes are treated as singletons, passed by reference.
The following table describes the possible operations on two instances a and b of OFerror_category:
Expression | Meaning |
---|---|
a != b | Compares two OFerror_category objects and evaluates to OFTrue if both objects refer to different error categories. |
a == b | Compares two OFerror_category objects and evaluates to OFTrue if both objects refer to the same error category. |
a < b | Implements a total order on OFerror_category objects. The semantics of one category being compared less than another are intentionally not defined, but, if one category compares less than to another it will stay that way during the remaining execution of the program and one and the same category will never compare less than to itself. |
|
pure virtual |
Constructs an explanatory string for an error code.
code | an integer that shall be interpreted as an error code. |
|
pure virtual |
Obtains the name of the category, for example "generic".