SIILPPMFileDriver.h

Go to the documentation of this file.
00001 //***************************************************************************************
00002 // File supervisor: Crosswalk team
00012 //***************************************************************************************
00013 
00014 //***************************************************************************************
00015 // Defines
00016 //***************************************************************************************
00017 #ifndef __CSIILPPMFileDriver_H__
00018 #define __CSIILPPMFileDriver_H__
00019 
00020 //***************************************************************************************
00021 // Includes
00022 //***************************************************************************************
00023 #include <SIBCPixMap.h>
00024 
00025 //***************************************************************************************
00026 // Typedefs
00027 //***************************************************************************************
00028 
00031 class XSIEXPORT CSIILPPMFileDriver : public CSIBCPixMapDriver
00032 {
00033 public:
00036     CSIILPPMFileDriver();
00037 
00040     virtual ~CSIILPPMFileDriver();
00041 
00047     virtual SI_Bool Supported( CSIBCString &in_Filename );
00048 
00056     virtual SI_Error Load( CSIBCString &in_filename, CSIBCPixMap &in_PixMap );
00057 
00061     static CSIILPPMFileDriver *Driver();
00062 
00063 protected:
00064     SI_Bool raw;
00065 
00066     static SI_Int readChar( _SI_FILE fp );
00067     static SI_Int readInt( _SI_FILE fp );
00068 
00069 private:
00070 
00071 
00072 };
00073 
00074 
00075 #endif // CSIILPPMFileDriver