00001 /* 00002 /-------------------------------------------------------------------- 00003 | 00004 | $Id: plmemsrc.h,v 1.4 2002/03/31 13:36:42 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 private: 00053 PLBYTE * m_pCurPos; 00054 }; 00055 00056 #endif 00057 /* 00058 /-------------------------------------------------------------------- 00059 | 00060 | $Log: plmemsrc.h,v $ 00061 | Revision 1.4 2002/03/31 13:36:42 uzadow 00062 | Updated copyright. 00063 | 00064 | Revision 1.3 2001/10/16 17:12:26 uzadow 00065 | Added support for resolution information (Luca Piergentili) 00066 | 00067 | Revision 1.2 2001/10/06 22:37:08 uzadow 00068 | Linux compatibility. 00069 | 00070 | Revision 1.1 2001/09/16 19:03:22 uzadow 00071 | Added global name prefix PL, changed most filenames. 00072 | 00073 | Revision 1.1 2000/03/17 10:51:38 Ulrich von Zadow 00074 | no message 00075 | 00076 | 00077 | 00078 \-------------------------------------------------------------------- 00079 */