pvAccessCPP
7.1.7
|
Request to put and get Array Data. More...
#include <client/pv/pvAccess.h>
Public Types | |
typedef std::tr1::shared_ptr < ChannelArray > | shared_pointer |
typedef std::tr1::shared_ptr < const ChannelArray > | const_shared_pointer |
typedef std::tr1::weak_ptr < ChannelArray > | weak_pointer |
typedef std::tr1::weak_ptr < const ChannelArray > | const_weak_pointer |
typedef ChannelArrayRequester | requester_type |
Public Member Functions | |
virtual void | putArray (epics::pvData::PVArray::shared_pointer const &putArray, size_t offset=0, size_t count=0, size_t stride=1)=0 |
put to the remote array. More... | |
virtual void | getArray (size_t offset=0, size_t count=0, size_t stride=1)=0 |
get from the remote array. More... | |
virtual void | getLength ()=0 |
Get the length. | |
virtual void | setLength (size_t length)=0 |
Set the length and/or the capacity. More... | |
virtual std::tr1::shared_ptr < Channel > | getChannel ()=0 |
Get a channel instance this request belongs to. More... | |
virtual void | cancel ()=0 |
Cancel any pending request. More... | |
virtual void | lastRequest ()=0 |
Announce next request as last request. More... | |
virtual void | destroy () |
Destroy this instance. | |
virtual void | lock () |
virtual void | unlock () |
Static Public Attributes | |
static size_t | num_instances |
Request to put and get Array Data.
The data is either taken from or put in the PVArray returned by ChannelArrayRequester.channelArrayConnect.
Definition at line 283 of file pvAccess.h.
|
pure virtualinherited |
Cancel any pending request.
Completion will be reported via request's response callback:
|
pure virtual |
get from the remote array.
Ownership of the PVArray previously passed to ChannelArrayRequester::getArrayDone() is returned to the ChannelArray from the ChannelArrayRequester.
offset | The offset in the remote array, i.e. the PVArray returned by ChannelArrayRequester::channelArrayConnect. |
count | The number of elements to get, 0 means "till the end of an array". |
stride | 1 means all the elements from offset to count, 2 means every other, 3 means every third, etc. |
|
pure virtualinherited |
Get a channel instance this request belongs to.
|
pure virtualinherited |
Announce next request as last request.
When last request will be completed (regardless of completion status) the remote and local instance will be destroyed.
|
pure virtual |
put to the remote array.
Ownership of the PVArray is transferred to the ChannelArray until ChannelArrayRequester::putArrayDone() or ChannelArrayRequester::channelDisconnect() is called.
putArray | array to put. |
offset | The offset in the remote array, i.e. the PVArray returned by ChannelArrayRequester::channelArrayConnect. |
count | The number of elements to put, 0 means "entire array". |
stride | 1 means all the elements from offset to count, 2 means every other, 3 means every third, etc. |
|
pure virtual |
Set the length and/or the capacity.
length | The new length. |