#ifndef NDPluginPva_H #define NDPluginPva_H #include #include #include "NDPluginDriver.h" #include #include #include #include #define NDPluginPvaPvNameString "PV_NAME" class NTNDArrayRecord; typedef std::tr1::shared_ptr NTNDArrayRecordPtr; /** Converts NDArray callback data into EPICS V4 NTNDArray data and exposes it * as an EPICS V4 PV */ class NDPluginPva : public NDPluginDriver, public std::tr1::enable_shared_from_this { public: POINTER_DEFINITIONS(NDPluginPva); NDPluginPva(const char *portName, int queueSize, int blockingCallbacks, const char *NDArrayPort, int NDArrayAddr, const char *pvName, int maxBuffers, size_t maxMemory, int priority, int stackSize); /* These methods override the virtual methods in the base class */ void processCallbacks(NDArray *pArray); protected: int NDPluginPvaPvName; private: NTNDArrayRecordPtr m_record; }; #endif