areaDetector 1-8
/home/epics/devel/areaDetector/ADApp/pluginSrc/NDFileNull.h
Go to the documentation of this file.
00001 /*
00002  * NDFileNull.h
00003  * Dummy file writer, whose main purpose is to allow deleting original driver files without re-writing them in 
00004  * an actual file plugin.
00005  *
00006  * Mark Rivers
00007  * November 30, 2011
00008  */
00009 
00010 #ifndef DRV_NDFileNULL_H
00011 #define DRV_NDFileNULL_H
00012 
00013 #include "NDPluginFile.h"
00014 
00017 class NDFileNull : public NDPluginFile {
00018 public:
00019     NDFileNull(const char *portName, int queueSize, int blockingCallbacks,
00020                  const char *NDArrayPort, int NDArrayAddr,
00021                  int priority, int stackSize);
00022 
00023     /* The methods that this class implements */
00024     virtual asynStatus openFile(const char *fileName, NDFileOpenMode_t openMode, NDArray *pArray);
00025     virtual asynStatus readFile(NDArray **pArray);
00026     virtual asynStatus writeFile(NDArray *pArray);
00027     virtual asynStatus closeFile();
00028 };
00029 #define NUM_NDFILE_NULL_PARAMS 0
00030 #endif