/* paramAttribute.h * * \author Mark Rivers * * \author University of Chicago * * \date April 30, 2009 * */ #ifndef INCparamAttributeH #define INCparamAttributeH #include "NDArray.h" /** Use native type for channel access */ #define DBR_NATIVE -1 typedef enum { paramAttrTypeInt, paramAttrTypeInt64, paramAttrTypeDouble, paramAttrTypeString, paramAttrTypeUnknown } paramAttrType_t; /** Attribute that gets its value from an asynNDArrayDriver driver parameter. * The updateValue() method for this class retrieves the current value of the driver parameter. */ class paramAttribute : public NDAttribute { public: paramAttribute(const char *pName, const char *pDescription, const char *pSource, int addr, class asynNDArrayDriver *pDriver, const char *dataType); paramAttribute(paramAttribute& attribute); ~paramAttribute(); paramAttribute* copy(NDAttribute *pAttribute); int updateValue(); int report(FILE *fp, int details); private: int paramId; int paramAddr; paramAttrType_t paramType; class asynNDArrayDriver *pDriver; }; #endif /*INCparamAttributeH*/