areaDetector 1-9
|
00001 /* 00002 * NDFileTIFF.h 00003 * Writes NDArrays to TIFF files. 00004 * John Hammonds 00005 * April 17, 2009 00006 */ 00007 00008 #ifndef DRV_NDFileTIFF_H 00009 #define DRV_NDFileTIFF_H 00010 00011 #include "NDPluginFile.h" 00012 #include "tiffio.h" 00013 00014 /* This version number is an attribute in the TIFF file to allow readers 00015 * to handle changes in the file contents */ 00016 #define NDTIFFFileVersion 1.0 00017 00024 class NDFileTIFF : public NDPluginFile { 00025 public: 00026 NDFileTIFF(const char *portName, int queueSize, int blockingCallbacks, 00027 const char *NDArrayPort, int NDArrayAddr, 00028 int priority, int stackSize); 00029 00030 /* The methods that this class implements */ 00031 virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray); 00032 virtual asynStatus readFile(NDArray **pArray); 00033 virtual asynStatus writeFile(NDArray *pArray); 00034 virtual asynStatus closeFile(); 00035 00036 private: 00037 TIFF *output; 00038 NDColorMode_t colorMode; 00039 }; 00040 #define NUM_NDFILE_TIFF_PARAMS 0 00041 #endif