|
| | PvMonitorBase (const std::string &pvName, const std::string &provider="pva", const std::string &request="field()", const std::string &fieldName="value") |
| | Monitor pvName through provider (pva by default) with request; fieldName names the payload field.
|
| |
| virtual | ~PvMonitorBase () |
| | Does nothing; empty virtual destructor.
|
| |
| int | printStructure () const |
| | Log the name, offset and type of each top-level field of the latest structure.
|
| |
| int | getParams (pvd::ScalarType &type, size_t &size, size_t &rank) |
| | From the latest structure, return the element type, element count and rank of the payload field and set getData for it.
|
| |
| bool | isPva () |
| | Return true if the provider is pva.
|
| |
| bool | isCa () |
| | Return true if the provider is not pva.
|
| |
| void | getTimestamp (int64_t &seconds, int32_t &nanoseconds) |
| | Return the seconds and nanoseconds of the timeStamp field of the latest structure.
|
| |
| void | getTimestampPosix (int64_t &seconds, int32_t &nanoseconds) |
| | Same as getTimestamp(): the secondsPastEpoch value is returned unchanged.
|
| |
| void | getTimestampEpics (int64_t &seconds, int32_t &nanoseconds) |
| | Like getTimestampPosix(), with POSIX_TIME_AT_EPICS_EPOCH subtracted from the seconds.
|
| |
| | POINTER_DEFINITIONS (MonTracker) |
| | Expands the pvData POINTER_DEFINITIONS macro for this class; doxygen lists it as a function.
|
| |
| | MonTracker (const std::string &name, const std::string &request="field()") |
| | Connect to name through pva and start a monitor with request (default field()).
|
| |
| | MonTracker (const std::string &provider, const std::string &name, const std::string &request="field()") |
| | Connect to name through ca if provider is ca, otherwise pva, and start a monitor with request.
|
| |
| virtual | ~MonTracker () |
| | Cancel the monitor.
|
| |
| const std::string | name () const |
| | Return the channel name.
|
| |
| bool | connected () const |
| | Return true from the first data update until a disconnect.
|
| |
| virtual void | monitorEvent (const pvac::MonitorEvent &evt) OVERRIDE FINAL |
| | Monitor callback on a pvAccess thread: queue the event on the WorkQueue for process().
|
| |
| virtual void | process (const pvac::MonitorEvent &evt) OVERRIDE FINAL |
| | Handle a monitor event on the WorkQueue thread.
|
| |
| virtual | ~Worker () |
| | Does nothing; empty virtual destructor.
|
| |
| virtual | ~PVMonitorCb () |
| | Does nothing; empty virtual destructor.
|
| |
| virtual void | onConnect () |
| | Called by MonTracker on the first data update after connecting; does nothing by default.
|
| |
| virtual void | onDisconnect () |
| | Called by MonTracker on a disconnect; does nothing by default.
|
| |
| virtual void | updated ()=0 |
| | Pure virtual: called for each update of the PV.
|
| |
MonTracker that copies the payload field of a PV (value by default) into raw buffers: getParams() inspects the field's type and selects the getData function.
| int Pds_Epics::PvMonitorBase::getParams |
( |
pvd::ScalarType & |
type, |
|
|
size_t & |
size, |
|
|
size_t & |
rank |
|
) |
| |
From the latest structure, return the element type, element count and rank of the payload field and set getData for it.
Strings count MAX_STRING_SIZE bytes each and enum_t structures are treated as strings. Returns 1 if the structure or a needed part of it is missing, else 0; throws a C string for a missing payload or an unsupported type.