00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00020 #ifndef CImageWriter_h
00021 #define CImageWriter_h
00022
00023 #include <CWriter.h>
00024
00025 #if defined (WIN32)
00026 # if defined MOTION2D_DLL_EXPORTS
00027 # define MOTION2D_API __declspec( dllexport )
00028 # elif defined MOTION2D_DLL_IMPORTS
00029 # define MOTION2D_API __declspec( dllimport )
00030 # else
00031 # define MOTION2D_API
00032 # endif
00033 #else
00034 # define MOTION2D_API
00035 #endif
00036
00037 class MOTION2D_API CImageWriter: public CWriter
00038 {
00039 public:
00040 ~CImageWriter();
00041
00042 string getFileName();
00043 bool writeFrame(CMotion2DImage<unsigned char> & I);
00044 bool writeFrame(CMotion2DImage<short> & I);
00045 bool openStream() {return true;};
00046 bool closeStream() {return true; };
00047 void getType() { cout <<" ImageWriter "<<endl;};
00048 EWriterFormat getFormat();
00049 };
00050
00051 #endif