areaDetector 1-8
|
00001 00002 /* PVAttribute.h 00003 * 00004 * \author Mark Rivers 00005 * 00006 * \author University of Chicago 00007 * 00008 * \date April 30, 2009 00009 * 00010 */ 00011 #ifndef INCPVAttributeH 00012 #define INCPVAttributeH 00013 00014 #include <ellLib.h> 00015 #include <cadef.h> 00016 00017 #include "NDArray.h" 00018 00020 #define DBR_NATIVE -1 00021 00024 class PVAttribute : public NDAttribute { 00025 public: 00026 PVAttribute(const char *pName, const char *pDescription, const char *pSource, chtype dbrType); 00027 ~PVAttribute(); 00028 /* These callbacks must be public because they are called from C */ 00029 void connectCallback(struct connection_handler_args cha); 00030 void monitorCallback(struct event_handler_args cha); 00031 int report(int details); 00032 00033 private: 00034 chid chanId; 00035 evid eventId; 00036 chtype dbrType; 00037 epicsMutexId lock; 00038 }; 00039 00040 #endif /*INCPVAttributeH*/