|
ChimeraTK-DeviceAccess
03.18.00
|
Go to the documentation of this file.
28 if(!target->isReadable()) {
38 _target->postRead(type, hasNewData);
40 for(
size_t i = 0; i < _target->getNumberOfChannels(); ++i)
buffer_2D[i] = _target->accessChannel(i);
44 [[nodiscard]]
bool isReadOnly()
const override {
return true; }
46 [[nodiscard]]
bool isWriteable()
const override {
return false; }
std::vector< std::vector< T > > buffer_2D
Buffer of converted data elements.
CopyRegisterDecorator(const boost::shared_ptr< ChimeraTK::NDRegisterAccessor< T >> &target)
void doPostRead(TransferType type, bool hasNewData) override
bool isWriteable() const override
Runtime type trait to identify CopyRegisterDecorators independent of their type.
Decorator for NDRegisterAccessors which makes a copy of the data from the target accessor.
TransferType
Used to indicate the applicable operation on a Transferelement.
Base class for decorators of the NDRegisterAccessor.
void doPreWrite(TransferType, VersionNumber) override
Class for generating and holding version numbers without exposing a numeric representation.
bool isReadOnly() const override
Exception thrown when a logic error has occured.