quadEM  7-0
paramAttribute.h
Go to the documentation of this file.
1 
2 /* paramAttribute.h
3  *
4  * \author Mark Rivers
5  *
6  * \author University of Chicago
7  *
8  * \date April 30, 2009
9  *
10  */
11 #ifndef INCparamAttributeH
12 #define INCparamAttributeH
13 
14 #include "NDAttribute.h"
15 #include "asynNDArrayDriver.h"
16 
18 #define DBR_NATIVE -1
19 
20 typedef enum {
27 
32 public:
33  paramAttribute(const char *pName, const char *pDescription, const char *pSource, int addr,
34  class asynNDArrayDriver *pDriver, const char *dataType);
35  paramAttribute(paramAttribute& attribute);
36  ~paramAttribute();
37  paramAttribute* copy(NDAttribute *pAttribute);
38  int updateValue();
39  int report(FILE *fp, int details);
40 
41 private:
42  int paramId;
43  int paramAddr;
44  paramAttrType_t paramType;
45  class asynNDArrayDriver *pDriver;
46 };
47 
48 #endif /*INCparamAttributeH*/
Definition: paramAttribute.h:25
Definition: paramAttribute.h:22
paramAttrType_t
Definition: paramAttribute.h:20
This is the class from which NDArray drivers are derived; implements the asynGenericPointer functions...
Definition: asynNDArrayDriver.h:132
Definition: paramAttribute.h:24
Attribute that gets its value from an asynNDArrayDriver driver parameter.
Definition: paramAttribute.h:31
Definition: paramAttribute.h:23
virtual NDAttribute * copy(NDAttribute *pAttribute)
Copies properties from this to pOut.
Definition: NDAttribute.cpp:104
Definition: paramAttribute.h:21
NDAttribute class; an attribute has a name, description, source type, source string, data type, and value.
Definition: NDAttribute.h:95
virtual int report(FILE *fp, int details)
Reports on the properties of the attribute.
Definition: NDAttribute.cpp:415
#define ADCORE_API
Definition: ADCoreAPI.h:41
virtual int updateValue()
Updates the current value of this attribute.
Definition: NDAttribute.cpp:406