home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / include / Decoder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-11  |  1.5 KB  |  36 lines

  1. //-----------------------------------------------------------------------------------//
  2. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  3. //                             ISBN  0-13-086985-6                                   //
  4. //                                                                                   //
  5. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  6. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  7. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  8. //                                                                                   //
  9. //  FileName   : decoder.h                                                             //
  10. //  Description: IAtomTable, IDecoder abstract base classes                          //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. #ifndef DECODER_INC
  15.  
  16. #define DECODER_INC
  17.  
  18. struct IAtomTable
  19. {
  20.     virtual ATOM         AddAtom(const char * name) = 0;
  21.     virtual const char * GetAtomName(ATOM atom) = 0;
  22. };
  23.                                          
  24.  
  25. struct IDecoder
  26. {
  27.     IDecoder * pNextDecoder;
  28.  
  29.     virtual bool Initialize(IAtomTable * pAtomTable) = 0;
  30.     
  31.     virtual int Decode(ATOM typ, const void * pValue, char * szBuffer, int nBufferSize) = 0;
  32. };
  33.  
  34. typedef IDecoder * (WINAPI * DecoderCreator)(void);
  35.  
  36. #endif