areaDetector  3-13
EPICS areaDetector framework
functAttribute.h
Go to the documentation of this file.
1 
2 /* functAttribute.h
3  *
4  * \author Mark Rivers
5  *
6  * \author University of Chicago
7  *
8  * \date October 12, 2013
9  *
10  */
11 #ifndef INCfunctAttributeH
12 #define INCfunctAttributeH
13 
14 #include <stdio.h>
15 
16 #include "NDAttribute.h"
17 
18 typedef int (*NDAttributeFunction)(const char *functParam, void **functionPvt, class functAttribute *pAttribute);
19 
24 public:
25  functAttribute(const char *pName, const char *pDescription, const char *pSource, const char *pParam);
26  functAttribute(functAttribute& attribute);
27  ~functAttribute();
28  functAttribute* copy(NDAttribute *pAttribute);
29  virtual int updateValue();
30  int report(FILE *fp, int details);
31 
32 private:
33  char *functParam;
34  NDAttributeFunction pFunction;
35  void *functionPvt;
36 };
37 
38 #endif /*INCfunctAttributeH*/
#define ADCORE_API
Definition: ADCoreAPI.h:41
NDAttribute class; an attribute has a name, description, source type, source string,...
Definition: NDAttribute.h:96
virtual int updateValue()
Updates the current value of this attribute.
Definition: NDAttribute.cpp:410
virtual NDAttribute * copy(NDAttribute *pAttribute)
Copies properties from this to pOut.
Definition: NDAttribute.cpp:108
virtual int report(FILE *fp, int details)
Reports on the properties of the attribute.
Definition: NDAttribute.cpp:419
Attribute that gets its value from a user-defined function The updateValue() method for this class re...
Definition: functAttribute.h:23
int(* NDAttributeFunction)(const char *functParam, void **functionPvt, class functAttribute *pAttribute)
Definition: functAttribute.h:18