SIILPPMFileDriver.h

00001 //***************************************************************************************
00002 //
00003 // File supervisor: Crosswalk team
00004 //
00005 // Copyright 2008 Autodesk, Inc.  All rights reserved.  
00006 // Use of this software is subject to the terms of the Autodesk license agreement 
00007 // provided at the time of installation or download, or which otherwise accompanies 
00008 // this software in either electronic or hard copy form.
00009 //
00010 //***************************************************************************************
00011 
00012 //***************************************************************************************
00013 // Defines
00014 //***************************************************************************************
00015 #ifndef __CSIILPPMFileDriver_H__
00016 #define __CSIILPPMFileDriver_H__
00017 
00018 //***************************************************************************************
00019 // Includes
00020 //***************************************************************************************
00021 #include <SIBCPixMap.h>
00022 
00023 //***************************************************************************************
00024 // Typedefs
00025 //***************************************************************************************
00026 
00028 class XSIEXPORT CSIILPPMFileDriver : public CSIBCPixMapDriver
00029 {
00030 public:
00034     CSIILPPMFileDriver();       
00035 
00038     virtual ~CSIILPPMFileDriver();          
00039     
00046     virtual SI_Bool Supported( CSIBCString &in_Filename );                  
00047                                                             
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