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] 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 (  ) 


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] 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.

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

Parameters:
[in] details Level 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:

Generated on Tue Aug 9 14:44:39 2011 for areaDetector by  doxygen 1.5.7.1