areaDetector 1-9
|
Attribute that gets its value from an EPICS PV. More...
#include <PVAttribute.h>
Public Member Functions | |
PVAttribute (const char *pName, const char *pDescription, const char *pSource, chtype dbrType) | |
Constructor for an EPICS PV attribute. | |
~PVAttribute () | |
void | connectCallback (struct connection_handler_args cha) |
Connection callback called whenever an EPICS PV connects or disconnects. | |
void | monitorCallback (struct event_handler_args cha) |
Monitor callback called whenever an EPICS PV changes value. | |
int | report (int details) |
Reports on the properties of the PVAttribute object; calls base class NDAttribute::report() to report on the parameter value. |
Attribute that gets its value from an EPICS PV.
PVAttribute::PVAttribute | ( | const char * | pName, |
const char * | pDescription, | ||
const char * | pSource, | ||
chtype | dbrType | ||
) |
Constructor for an EPICS PV attribute.
[in] | pName | The name of the attribute to be created; case-insensitive. |
[in] | pDescription | The description of the attribute. |
[in] | pSource | The name of the EPICS PV to be used to obtain the attribute value. |
[in] | dbrType | The EPICS DBR_XXX type to be used (DBR_STRING, DBR_DOUBLE, etc). In addition to the normal DBR types a special type, DBR_NATIVE, may be used, which means to use the native data type returned by Channel Access for this PV. |
PVAttribute::~PVAttribute | ( | ) |
void PVAttribute::connectCallback | ( | struct connection_handler_args | cha | ) |
Connection callback called whenever an EPICS PV connects or disconnects.
If it is a connection event it calls ca_add_masked_array_event to request callbacks whenever the value changes.
[in] | cha | Connection handler argument structure passed by channel access. |
void PVAttribute::monitorCallback | ( | struct event_handler_args | eha | ) |
Monitor callback called whenever an EPICS PV changes value.
Calls NDAttribute::setValue to store the new value.
[in] | eha | Event handler argument structure passed by channel access. |
int PVAttribute::report | ( | int | details | ) | [virtual] |
Reports on the properties of the PVAttribute object; calls base class NDAttribute::report() to report on the parameter value.
[in] | details | Level of report details desired; currently does nothing in this derived class. |
Reimplemented from NDAttribute.