areaDetector 1-8
/home/epics/devel/areaDetector/ADApp/ADSrc/paramAttribute.h
Go to the documentation of this file.
00001 
00002 /* paramAttribute.h
00003  *
00004  * \author Mark Rivers
00005  *
00006  * \author University of Chicago
00007  *
00008  * \date April 30, 2009
00009  *
00010  */
00011 #ifndef INCparamAttributeH
00012 #define INCparamAttributeH
00013 
00014 #include <ellLib.h>
00015 #include <cadef.h>
00016 
00017 #include "NDArray.h"
00018 
00020 #define DBR_NATIVE -1
00021 
00022 typedef enum {
00023     paramAttrTypeInt,
00024     paramAttrTypeDouble,
00025     paramAttrTypeString,
00026     paramAttrTypeUnknown
00027 } paramAttrType_t;
00028 
00032 class paramAttribute : public NDAttribute {
00033 public:
00034     paramAttribute(const char *pName, const char *pDescription, const char *pSource, int addr, 
00035                     class asynNDArrayDriver *pDriver, const char *dataType);
00036     ~paramAttribute();
00037     virtual int updateValue();
00038     int report(int details);
00039 
00040 private:
00041     int         paramId;
00042     int         paramAddr;
00043     paramAttrType_t paramType;
00044     class asynNDArrayDriver *pDriver;
00045 };
00046 
00047 #endif /*INCparamAttributeH*/