17 const std::vector<double>& AxisDataVal,
18 const std::vector<std::int8_t>& HatsDataVal,
19 const std::vector<MultipleTouches>& TouchDataVal,
20 const std::vector<yarp::dev::StickData>& StickDataVal,
21 const std::vector<yarp::dev::TrackballData>& TrackballDataVal) :
23 ButtonDataVal(ButtonDataVal),
24 AxisDataVal(AxisDataVal),
25 HatsDataVal(HatsDataVal),
26 TouchDataVal(TouchDataVal),
27 StickDataVal(StickDataVal),
28 TrackballDataVal(TrackballDataVal)
35 if (!read_ButtonDataVal(reader)) {
38 if (!read_AxisDataVal(reader)) {
41 if (!read_HatsDataVal(reader)) {
44 if (!read_TouchDataVal(reader)) {
47 if (!read_StickDataVal(reader)) {
50 if (!read_TrackballDataVal(reader)) {
75 if (!write_ButtonDataVal(writer)) {
78 if (!write_AxisDataVal(writer)) {
81 if (!write_HatsDataVal(writer)) {
84 if (!write_TouchDataVal(writer)) {
87 if (!write_StickDataVal(writer)) {
90 if (!write_TrackballDataVal(writer)) {
106 if (!
write(writer)) {
135 if constexpr (expected_tag != 0) {
136 if (_csize != 0 && _etype.
code != expected_tag) {
177 if constexpr (expected_tag != 0) {
178 if (_csize != 0 && _etype.
code != expected_tag) {
219 if constexpr (expected_tag != 0) {
220 if (_csize != 0 && _etype.
code != expected_tag) {
261 if constexpr (expected_tag != 0) {
262 if (_csize != 0 && _etype.
code != expected_tag) {
303 if constexpr (expected_tag != 0) {
304 if (_csize != 0 && _etype.
code != expected_tag) {
345 if constexpr (expected_tag != 0) {
346 if (_csize != 0 && _etype.
code != expected_tag) {
387 if constexpr (expected_tag != 0) {
388 if (_csize != 0 && _etype.
code != expected_tag) {
393 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
438 if constexpr (expected_tag != 0) {
439 if (_csize != 0 && _etype.
code != expected_tag) {
444 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
489 if constexpr (expected_tag != 0) {
490 if (_csize != 0 && _etype.
code != expected_tag) {
495 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
540 if constexpr (expected_tag != 0) {
541 if (_csize != 0 && _etype.
code != expected_tag) {
546 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
591 if constexpr (expected_tag != 0) {
592 if (_csize != 0 && _etype.
code != expected_tag) {
597 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
642 if constexpr (expected_tag != 0) {
643 if (_csize != 0 && _etype.
code != expected_tag) {
648 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
#define BOTTLE_TAG_FLOAT64
bool write(const yarp::os::idl::WireWriter &writer) const override
std::vector< double > ButtonDataVal
std::vector< yarp::dev::StickData > StickDataVal
std::vector< yarp::dev::TrackballData > TrackballDataVal
std::string toString() const
std::vector< double > AxisDataVal
std::vector< std::int8_t > HatsDataVal
std::vector< MultipleTouches > TouchDataVal
bool read(yarp::os::idl::WireReader &reader) override
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 readBlock(char *const data, size_t len)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeBlock(const char *data, size_t len) const
bool writeListEnd() const
bool writeNested(const WirePortable &obj) const
bool writeListBegin(int tag, size_t len) const
For streams capable of holding different kinds of content, check what they actually have.