lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds_Epics::PutTracker< T > Struct Template Reference

Put callback that writes one scalar to the value field of a PV and signals completionEvent when the put ends (copied from the EPICS V4 example code, per the code comment). More...

#include <EpicsPVA.hh>

Inherits pvac::ClientChannel::PutCallback.

Public Member Functions

 POINTER_DEFINITIONS (PutTracker)
 Expands the pvData POINTER_DEFINITIONS macro for this type; doxygen lists it as a function.
 
 PutTracker (const T &val)
 Keep a copy of val.
 
virtual ~PutTracker ()
 Does nothing; empty virtual destructor.
 
virtual void putBuild (const epics::pvData::StructureConstPtr &build, pvac::ClientChannel::PutCallback::Args &args)
 Create the put structure from build, set its value field from value and mark only that field to be sent.
 
virtual void putDone (const pvac::PutEvent &evt) OVERRIDE FINAL
 Print a message for a failed or cancelled put, then signal completionEvent.
 

Public Attributes

epicsEvent completionEvent
 Signalled by putDone().
 
const T value
 Value to put.
 

Detailed Description

template<typename T>
struct Pds_Epics::PutTracker< T >

Put callback that writes one scalar to the value field of a PV and signals completionEvent when the put ends (copied from the EPICS V4 example code, per the code comment).

Constructor & Destructor Documentation

◆ PutTracker()

template<typename T >
Pds_Epics::PutTracker< T >::PutTracker ( const T &  val)
inline

Keep a copy of val.

◆ ~PutTracker()

template<typename T >
virtual Pds_Epics::PutTracker< T >::~PutTracker ( )
inlinevirtual

Does nothing; empty virtual destructor.

Member Function Documentation

◆ POINTER_DEFINITIONS()

template<typename T >
Pds_Epics::PutTracker< T >::POINTER_DEFINITIONS ( PutTracker< T >  )

Expands the pvData POINTER_DEFINITIONS macro for this type; doxygen lists it as a function.

◆ putBuild()

template<typename T >
virtual void Pds_Epics::PutTracker< T >::putBuild ( const epics::pvData::StructureConstPtr &  build,
pvac::ClientChannel::PutCallback::Args &  args 
)
inlinevirtual

Create the put structure from build, set its value field from value and mark only that field to be sent.

◆ putDone()

template<typename T >
virtual void Pds_Epics::PutTracker< T >::putDone ( const pvac::PutEvent &  evt)
inlinevirtual

Print a message for a failed or cancelled put, then signal completionEvent.

Member Data Documentation

◆ completionEvent

template<typename T >
epicsEvent Pds_Epics::PutTracker< T >::completionEvent

Signalled by putDone().

◆ value

template<typename T >
const T Pds_Epics::PutTracker< T >::value

Value to put.


The documentation for this struct was generated from the following file: