lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds_Epics::StructurePutTracker Struct Reference

Put callback that fills the top-level fields of a PV structure from a packed buffer and signals completionEvent when the put ends. More...

#include <EpicsPVA.hh>

Inherits pvac::ClientChannel::PutCallback.

Public Member Functions

 POINTER_DEFINITIONS (StructurePutTracker)
 Expands the pvData POINTER_DEFINITIONS macro for this type; doxygen lists it as a function.
 
 StructurePutTracker (const char *val, const unsigned *sz, bool debug)
 Store the buffer and size pointers (not copied) and the debug flag.
 
virtual ~StructurePutTracker ()
 Does nothing; empty virtual destructor.
 
virtual void putBuild (const epics::pvData::StructureConstPtr &build, pvac::ClientChannel::PutCallback::Args &args)
 Create the put structure from build and fill its top-level scalar and scalar array fields in order from value, as int32, int64, uint32, uint64, float or double (array lengths from sizes).
 
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 char * value
 Packed field values, read in field order; putBuild() advances this pointer.
 
const unsigned * sizes
 Element counts of the array fields, in field order; putBuild() advances this pointer.
 
bool ldebug
 If true, putBuild() dumps the structure and prints each value read.
 

Detailed Description

Put callback that fills the top-level fields of a PV structure from a packed buffer and signals completionEvent when the put ends.

Constructor & Destructor Documentation

◆ StructurePutTracker()

Pds_Epics::StructurePutTracker::StructurePutTracker ( const char *  val,
const unsigned *  sz,
bool  debug 
)
inline

Store the buffer and size pointers (not copied) and the debug flag.

◆ ~StructurePutTracker()

virtual Pds_Epics::StructurePutTracker::~StructurePutTracker ( )
inlinevirtual

Does nothing; empty virtual destructor.

Member Function Documentation

◆ POINTER_DEFINITIONS()

Pds_Epics::StructurePutTracker::POINTER_DEFINITIONS ( StructurePutTracker  )

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

◆ putBuild()

virtual void Pds_Epics::StructurePutTracker::putBuild ( const epics::pvData::StructureConstPtr &  build,
pvac::ClientChannel::PutCallback::Args &  args 
)
virtual

Create the put structure from build and fill its top-level scalar and scalar array fields in order from value, as int32, int64, uint32, uint64, float or double (array lengths from sizes).

Other field kinds are skipped and other element types throw a std::string; bit 0 of the send mask is set.

◆ putDone()

virtual void Pds_Epics::StructurePutTracker::putDone ( const pvac::PutEvent &  evt)
inlinevirtual

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

Member Data Documentation

◆ completionEvent

epicsEvent Pds_Epics::StructurePutTracker::completionEvent

Signalled by putDone().

◆ ldebug

bool Pds_Epics::StructurePutTracker::ldebug

If true, putBuild() dumps the structure and prints each value read.

◆ sizes

const unsigned* Pds_Epics::StructurePutTracker::sizes

Element counts of the array fields, in field order; putBuild() advances this pointer.

◆ value

const char* Pds_Epics::StructurePutTracker::value

Packed field values, read in field order; putBuild() advances this pointer.


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