15 const std::vector<double>& val,
16 const std::vector<double>& time) :
27 if (!nested_read_ret(reader)) {
30 if (!read_val(reader)) {
33 if (!read_time(reader)) {
58 if (!nested_write_ret(writer)) {
61 if (!write_val(writer)) {
64 if (!write_time(writer)) {
155 if constexpr (expected_tag != 0) {
156 if (_csize != 0 && _etype.
code != expected_tag) {
161 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
val.data()),
val.size() *
sizeof(double))) {
175 if (!writer.
writeBlock(
reinterpret_cast<const char*
>(
val.data()),
val.size() *
sizeof(
double))) {
197 if constexpr (expected_tag != 0) {
198 if (_csize != 0 && _etype.
code != expected_tag) {
203 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
val.data()),
val.size() *
sizeof(double))) {
217 if (!writer.
writeBlock(
reinterpret_cast<const char*
>(
val.data()),
val.size() *
sizeof(
double))) {
239 if constexpr (expected_tag != 0) {
240 if (_csize != 0 && _etype.
code != expected_tag) {
245 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
time.data()),
time.size() *
sizeof(double))) {
259 if (!writer.
writeBlock(
reinterpret_cast<const char*
>(
time.data()),
time.size() *
sizeof(
double))) {
281 if constexpr (expected_tag != 0) {
282 if (_csize != 0 && _etype.
code != expected_tag) {
287 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
time.data()),
time.size() *
sizeof(double))) {
301 if (!writer.
writeBlock(
reinterpret_cast<const char*
>(
time.data()),
time.size() *
sizeof(
double))) {
#define BOTTLE_TAG_FLOAT64
yarp::dev::ReturnValue ret
return_getEncoderTimedAll()=default
std::string toString() const
std::vector< double > val
std::vector< double > time
bool read(yarp::os::idl::WireReader &reader) override
bool write(const yarp::os::idl::WireWriter &writer) const 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)
bool read(WirePortable &obj)
IDL-friendly connection writer.
bool write(const WirePortable &obj) const
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