areaDetector  3-5-0
EPICS areaDetector framework
NDFileNetCDF.h
Go to the documentation of this file.
1 /*
2  * NDFileNetCDF.h
3  * Writes NDArrays to netCDF files.
4  * Mark Rivers
5  * April 17, 2008
6  */
7 
8 #ifndef DRV_NDFileNetCDF_H
9 #define DRV_NDFileNetCDF_H
10 
11 #include "NDPluginFile.h"
12 
15 #define NDNetCDFFileVersion 3.0
16 
25 class epicsShareClass NDFileNetCDF : public NDPluginFile {
26 public:
27  NDFileNetCDF(const char *portName, int queueSize, int blockingCallbacks,
28  const char *NDArrayPort, int NDArrayAddr,
29  int priority, int stackSize);
30 
31  /* The methods that this class implements */
32  virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray);
33  virtual asynStatus readFile(NDArray **pArray);
34  virtual asynStatus writeFile(NDArray *pArray);
35  virtual asynStatus closeFile();
36 
37 private:
38  int ncId;
39  int arrayDataId;
40  int uniqueIdId;
41  int timeStampId;
42  int epicsTSSecId;
43  int epicsTSNsecId;
44  int nextRecord;
45  int *pAttributeId;
46  NDAttributeList *pFileAttributes;
47 };
48 
49 #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.
Writes NDArrays to files in the netCDF file format.
Definition: NDFileNetCDF.h:25
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.
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