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

Put callback that writes an array to the value field of a PV and signals completionEvent when the put ends. More...

#include <EpicsPVA.hh>

Inherits pvac::ClientChannel::PutCallback.

Public Member Functions

 POINTER_DEFINITIONS (VectorPutTracker)
 Expands the pvData POINTER_DEFINITIONS macro for this type; doxygen lists it as a function.
 
 VectorPutTracker (const pvd::shared_vector< const T > &val)
 Keep a shared copy of val.
 
virtual ~VectorPutTracker ()
 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 array 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 pvd::shared_vector< const T > value
 Array to put.
 

Detailed Description

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

Put callback that writes an array to the value field of a PV and signals completionEvent when the put ends.

Constructor & Destructor Documentation

◆ VectorPutTracker()

template<typename T >
Pds_Epics::VectorPutTracker< T >::VectorPutTracker ( const pvd::shared_vector< const T > &  val)
inline

Keep a shared copy of val.

◆ ~VectorPutTracker()

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

Does nothing; empty virtual destructor.

Member Function Documentation

◆ POINTER_DEFINITIONS()

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

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

◆ putBuild()

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

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

◆ putDone()

template<typename T >
virtual void Pds_Epics::VectorPutTracker< 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::VectorPutTracker< T >::completionEvent

Signalled by putDone().

◆ value

template<typename T >
const pvd::shared_vector<const T> Pds_Epics::VectorPutTracker< T >::value

Array to put.


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