Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

plmemsrc.h

00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: plmemsrc_8h-source.html,v 1.4 2004/09/15 15:26:29 uzadow Exp $
00005 |
00006 |      Copyright (c) 1996-2002 Ulrich von Zadow
00007 |
00008 \--------------------------------------------------------------------
00009 */
00010 
00011 #ifndef INCL_PLMEMSRC
00012 #define INCL_PLMEMSRC
00013 
00014 #ifndef INCL_PLDATASRC
00015 #include "pldatasrc.h"
00016 #endif
00017 
00018 //! This is a class which takes a memory pointer as a source of
00019 //! picture data.
00020 class PLMemSource : public PLDataSource
00021 {
00022 public:
00023   //!
00024   PLMemSource
00025     ();
00026 
00027   //!
00028   virtual ~PLMemSource
00029     ();
00030 
00031   //!
00032   virtual int Open( unsigned char *pek, int size);
00033 
00034   //!
00035   virtual void Close
00036     ();
00037 
00038   virtual PLBYTE * ReadNBytes
00039     ( int n
00040     );
00041 
00042   //! Read but don't advance file pointer.
00043   virtual PLBYTE * GetBufferPtr
00044     ( int MinBytesInBuffer
00045     );
00046 
00047   //! This is a legacy routine that interferes with progress notifications.
00048   //! Don't call it!
00049   virtual PLBYTE * ReadEverything
00050     ();
00051 
00052   virtual void Seek
00053     ( int n
00054     );
00055 
00056 private:
00057   PLBYTE * m_pStartPos;
00058   PLBYTE * m_pCurPos;
00059 };
00060 
00061 #endif
00062 /*
00063 /--------------------------------------------------------------------
00064 |
00065 |      $Log: plmemsrc_8h-source.html,v $
00065 |      Revision 1.4  2004/09/15 15:26:29  uzadow
00065 |      Linux compatibility changes, doc update.
00065 |
00066 |      Revision 1.5  2004/08/20 14:39:38  uzadow
00067 |      Added rle format to sgi decoder. Doesn't work yet, though.
00068 |
00069 |      Revision 1.4  2002/03/31 13:36:42  uzadow
00070 |      Updated copyright.
00071 |
00072 |      Revision 1.3  2001/10/16 17:12:26  uzadow
00073 |      Added support for resolution information (Luca Piergentili)
00074 |
00075 |      Revision 1.2  2001/10/06 22:37:08  uzadow
00076 |      Linux compatibility.
00077 |
00078 |      Revision 1.1  2001/09/16 19:03:22  uzadow
00079 |      Added global name prefix PL, changed most filenames.
00080 |
00081 |      Revision 1.1  2000/03/17 10:51:38  Ulrich von Zadow
00082 |      no message
00083 |
00084 |
00085 |
00086 \--------------------------------------------------------------------
00087 */

Generated on Mon Sep 13 16:16:40 2004 for paintlib by doxygen 1.3.2