Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

ErrorCode Class Reference

#include <ErrorCode.hpp>

List of all members.

Public Methods

 ErrorCode ()
 ErrorCode (const ErrorCode &src)
 ErrorCode (const ErrorCodeValue val)
virtual ~ErrorCode ()
ErrorCode & operator= (const ErrorCode &right)
bool operator!= (const ErrorCode &right) const
bool operator== (const ErrorCode &right) const

Private Attributes

ErrorCodeValue err
bool * PboResp


Constructor & Destructor Documentation

ErrorCode::ErrorCode  
 

Definition at line 11 of file ErrorCode.cpp.

00013   : err(Success), PboResp( new BOOL( FALSE ) ) { }

ErrorCode::ErrorCode const ErrorCode &    src
 

Definition at line 17 of file ErrorCode.cpp.

00019   : err(src.err), PboResp( new BOOL(TRUE) )
00020 
00021 {
00022 
00023   *src.PboResp = FALSE;
00024 
00025 }

ErrorCode::ErrorCode const ErrorCodeValue    val
 

Definition at line 29 of file ErrorCode.cpp.

00031   : err( val ), PboResp( new BOOL(TRUE) ) { }

ErrorCode::~ErrorCode   [virtual]
 

Definition at line 35 of file ErrorCode.cpp.

00037 {
00038 
00039   if ( *PboResp ) {
00040 
00041     cerr << "Destruction of untested error code: value " << err << endl;
00042 
00043   }
00044 
00045 
00046 
00047   delete PboResp;
00048 
00049 }


Member Function Documentation

BOOL ErrorCode::operator!= const ErrorCode &    right const
 

Definition at line 79 of file ErrorCode.cpp.

00081 {
00082 
00083   *PboResp = FALSE;
00084 
00085   *right.PboResp = FALSE;
00086 
00087 
00088 
00089   return (err != right.err);
00090 
00091 }

ErrorCode & ErrorCode::operator= const ErrorCode &    right
 

Definition at line 53 of file ErrorCode.cpp.

00055 {
00056 
00057   if (*PboResp)
00058 
00059     cerr << "Untested error code (value " << err
00060 
00061       << ") erased by new value " << right.err << endl;
00062 
00063 
00064 
00065   err = right.err;
00066 
00067   *PboResp = *right.PboResp;
00068 
00069   *right.PboResp = FALSE;
00070 
00071   
00072 
00073   return *this;
00074 
00075 }

bool ErrorCode::operator== const ErrorCode &    right const [inline]
 

Definition at line 49 of file ErrorCode.hpp.

00049                                                  {
00050 
00051     return !(*this != right);
00052 
00053   };


Member Data Documentation

bool* ErrorCode::PboResp [private]
 

Definition at line 61 of file ErrorCode.hpp.

Referenced by operator!=(), and operator=().

ErrorCodeValue ErrorCode::err [private]
 

Definition at line 59 of file ErrorCode.hpp.

Referenced by operator!=(), and operator=().


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:48:34 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001