areaDetector 1-8
Public Member Functions
PVAttribute Class Reference

Attribute that gets its value from an EPICS PV. More...

#include <PVAttribute.h>

Inheritance diagram for PVAttribute:
NDAttribute

List of all members.

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.

Detailed Description

Attribute that gets its value from an EPICS PV.


Constructor & Destructor Documentation

PVAttribute::PVAttribute ( const char *  pName,
const char *  pDescription,
const char *  pSource,
chtype  dbrType 
)

Constructor for an EPICS PV attribute.

Parameters:
[in]pNameThe name of the attribute to be created; case-insensitive.
[in]pDescriptionThe description of the attribute.
[in]pSourceThe name of the EPICS PV to be used to obtain the attribute value.
[in]dbrTypeThe 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 ( )

Member Function Documentation

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.

Parameters:
[in]chaConnection 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.

Parameters:
[in]ehaEvent 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.

Parameters:
[in]detailsLevel of report details desired; currently does nothing in this derived class.

Reimplemented from NDAttribute.


The documentation for this class was generated from the following files: