|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
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. | |
Put callback that fills the top-level fields of a PV structure from a packed buffer and signals completionEvent when the put ends.
|
inline |
Store the buffer and size pointers (not copied) and the debug flag.
|
inlinevirtual |
Does nothing; empty virtual destructor.
| Pds_Epics::StructurePutTracker::POINTER_DEFINITIONS | ( | StructurePutTracker | ) |
Expands the pvData POINTER_DEFINITIONS macro for this type; doxygen lists it as a function.
|
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.
|
inlinevirtual |
Print a message for a failed or cancelled put, then signal completionEvent.
| epicsEvent Pds_Epics::StructurePutTracker::completionEvent |
Signalled by putDone().
| bool Pds_Epics::StructurePutTracker::ldebug |
If true, putBuild() dumps the structure and prints each value read.
| const unsigned* Pds_Epics::StructurePutTracker::sizes |
Element counts of the array fields, in field order; putBuild() advances this pointer.
| const char* Pds_Epics::StructurePutTracker::value |
Packed field values, read in field order; putBuild() advances this pointer.