17 const std::vector<yarp::sig::ImageLayer>& layers) :
19 background(background),
27 if (!nested_read_background(reader)) {
30 if (!read_layers(reader)) {
55 if (!nested_write_background(writer)) {
58 if (!write_layers(writer)) {
149 if constexpr (expected_tag != 0) {
150 if (_csize != 0 && _etype.
code != expected_tag) {
155 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
176 for (
const auto& _item :
layers) {
200 if constexpr (expected_tag != 0) {
201 if (_csize != 0 && _etype.
code != expected_tag) {
206 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
227 for (
const auto& _item :
layers) {
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readNested(WirePortable &obj)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
bool read(WirePortable &obj)
IDL-friendly connection writer.
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeListEnd() const
bool writeNested(const WirePortable &obj) const
bool writeListBegin(int tag, size_t len) const
Image class with user control of representation details.
LayeredImageData()=default
yarp::sig::FlexImage background
bool read(yarp::os::idl::WireReader &reader) override
std::vector< yarp::sig::ImageLayer > layers
std::string toString() const
bool write(const yarp::os::idl::WireWriter &writer) const override