areaDetector  3-14
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 
19 #define NDNetCDFFileVersion 3.1
20 
30 public:
31  NDFileNetCDF(const char *portName, int queueSize, int blockingCallbacks,
32  const char *NDArrayPort, int NDArrayAddr,
33  int priority, int stackSize);
34 
35  /* The methods that this class implements */
36  virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray);
37  virtual asynStatus readFile(NDArray **pArray);
38  virtual asynStatus writeFile(NDArray *pArray);
39  virtual asynStatus closeFile();
40 
41 private:
42  int ncId;
43  int arrayDataId;
44  int uniqueIdId;
45  int timeStampId;
46  int epicsTSSecId;
47  int epicsTSNsecId;
48  int nextRecord;
49  int *pAttributeId;
50  NDAttributeList *pFileAttributes;
51 };
52 
53 #endif
#define NDPLUGIN_API
Definition: NDPluginAPI.h:41
int NDFileOpenMode_t
Definition: NDPluginFile.h:17
N-dimensional array class; each array has a set of dimensions, a data type, pointer to data,...
Definition: NDArray.h:99
NDAttributeList.h.
Definition: NDAttributeList.h:21
Writes NDArrays to files in the netCDF file format.
Definition: NDFileNetCDF.h:29
Base class for NDArray file writing plugins; actual file writing plugins inherit from this class.
Definition: NDPluginFile.h:28
virtual asynStatus readFile(NDArray **pArray)=0
Read NDArray data from a file; pure virtual function that must be implemented by derived classes.
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.