home *** CD-ROM | disk | FTP | other *** search
/ Compressed Image File Formats / CompressedImageFileFormatsJohnMiano.iso / pc / Examples / c02 / inc / bmp.h next >
Encoding:
C/C++ Source or Header  |  1998-12-17  |  2.0 KB  |  74 lines

  1. #ifndef __BMP_H
  2. #define __BMP_H
  3. //
  4. // Copyright (c) 1997,1998 Colosseum Builders, Inc.
  5. // All rights reserved.
  6. //
  7. // Colosseum Builders, Inc. makes no warranty, expressed or implied
  8. // with regards to this software. It is provided as is.
  9. //
  10. // See the README.TXT file that came with this software for restrictions
  11. // on the use and redistribution of this file or send E-mail to
  12. // info@colosseumbuilders.com
  13. //
  14.  
  15. //
  16. // BMP Library.
  17. //
  18. //  Title:   Windows Bitmap Definitions
  19. //
  20. //  Author:  John M. Miano  miano@colosseumbuilders.com
  21. //
  22.  
  23. #include "grexcept.h"
  24.  
  25. class EBmpFileReadError : public EGraphicsException
  26. {
  27. public:
  28.   EBmpFileReadError () : EGraphicsException ("Error reading BMP input file") {}
  29.   EBmpFileReadError (const EBmpFileReadError &be) : EGraphicsException (be) {}
  30.   EBmpFileReadError &operator=(const EBmpFileReadError &ge)
  31.   {
  32.     this->EGraphicsException::operator=(ge) ;
  33.     return *this ;
  34.   }
  35. } ;
  36.  
  37. class EBmpNotABmpFile : public EGraphicsException
  38. {
  39. public:
  40.   EBmpNotABmpFile () : EGraphicsException ("Not a Windows Bitmap stream") {}
  41.   EBmpNotABmpFile (const EBmpNotABmpFile &be) : EGraphicsException (be) {}
  42.   EBmpNotABmpFile &operator=(const EBmpNotABmpFile &ge)
  43.   {
  44.     this->EGraphicsException::operator=(ge) ;
  45.     return *this ;
  46.   }
  47. } ;
  48.  
  49. class EBmpCorruptFile : public EGraphicsException
  50. {
  51. public:
  52.   EBmpCorruptFile () : EGraphicsException ("Corrupt Windows Bitmap stream") {}
  53.   EBmpCorruptFile (const EBmpCorruptFile &be) : EGraphicsException (be) {}
  54.   EBmpCorruptFile &operator=(const EBmpCorruptFile &ge)
  55.   {
  56.     this->EGraphicsException::operator=(ge) ;
  57.     return *this ;
  58.   }
  59. } ;
  60.  
  61. class EBmpNotSupported : public EGraphicsException
  62. {
  63. public:
  64.   EBmpNotSupported () : EGraphicsException ("Unsupported Bitmap Format") {}
  65.   EBmpNotSupported (const EBmpNotSupported &be) : EGraphicsException (be) {}
  66.   EBmpNotSupported &operator=(const EBmpNotSupported &ge)
  67.   {
  68.     this->EGraphicsException::operator=(ge) ;
  69.     return *this ;
  70.   }
  71. } ;
  72.  
  73. #endif
  74.