areaDetector  3-5-0
EPICS areaDetector framework
NDFileTIFF.h
Go to the documentation of this file.
1 /*
2  * NDFileTIFF.h
3  * Writes NDArrays to TIFF files.
4  * John Hammonds
5  * April 17, 2009
6  */
7 
8 #ifndef DRV_NDFileTIFF_H
9 #define DRV_NDFileTIFF_H
10 
11 #include "NDPluginFile.h"
12 #include "tiffio.h"
13 
14 /* This version number is an attribute in the TIFF file to allow readers
15  * to handle changes in the file contents */
16 #define NDTIFFFileVersion 1.0
17 
24 class epicsShareClass NDFileTIFF : public NDPluginFile {
25 public:
26  NDFileTIFF(const char *portName, int queueSize, int blockingCallbacks,
27  const char *NDArrayPort, int NDArrayAddr,
28  int priority, int stackSize);
29 
30  /* The methods that this class implements */
31  virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray);
32  virtual asynStatus readFile(NDArray **pArray);
33  virtual asynStatus writeFile(NDArray *pArray);
34  virtual asynStatus closeFile();
35 
36 private:
37  TIFF *tiff;
38  NDColorMode_t colorMode;
39  int *pAttributeId;
40  NDAttributeList *pFileAttributes;
41  int numAttributes_;
42 
43 };
44 
45 #endif
virtual asynStatus closeFile()=0
Close the file opened with NDPluginFile::openFile; pure virtual function that must be implemented by ...
virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray)=0
Open a file; pure virtual function that must be implemented by derived classes.
virtual asynStatus writeFile(NDArray *pArray)=0
Write NDArray data to a file; pure virtual function that must be implemented by derived classes.
NDAttributeList.h.
Definition: NDAttributeList.h:21
virtual asynStatus readFile(NDArray **pArray)=0
Read NDArray data from a file; pure virtual function that must be implemented by derived classes.
NDColorMode_t
Enumeration of color modes for NDArray attribute "colorMode".
Definition: NDArray.h:28
Writes NDArrays in the TIFF file format.
Definition: NDFileTIFF.h:24
N-dimensional array class; each array has a set of dimensions, a data type, pointer to data,...
Definition: NDArray.h:92
int NDFileOpenMode_t
Definition: NDPluginFile.h:17
Base class for NDArray file writing plugins; actual file writing plugins inherit from this class.
Definition: NDPluginFile.h:28