Class PVControl

Class Documentation

class PVControl

Methods for accessing an control structure.

An control structure has the following fields:

structure
    double limitLow
    double limitHigh
    double minStep
This class can be attached to an control structure field of any PVData object. The methods provide access to the fields in the attached structure, via an instance of class Control. This class should not be extended.

Public Functions

inline PVControl()

Constructor

bool attach(PVFieldPtr const &pvField)
void detach()

Detach for pvField.

bool isAttached()

Is the PVControl attached to a pvField?

Returns

(false,true) (is not,is) attached to a pvField.

void get(Control &control) const

copy the control structure values to Control

Parameters

control – An instance of class Control

Throws

If – not attached to a pvField.

bool set(Control const &control)

copy the values from Control to the control structure.

Parameters

control – An instance of class Control

Throws

If – not attached to a pvField.

Returns

(false,true) if pvField (immutable, mutable)