15 const std::vector<std::string>& locations) :
25 if (!read_retval(reader)) {
28 if (!read_locations(reader)) {
53 if (!write_retval(writer)) {
56 if (!write_locations(writer)) {
136 if constexpr (expected_tag != 0) {
137 if (_csize != 0 && _etype.
code != expected_tag) {
142 for (
size_t _i = 0; _i < _csize; ++_i) {
185 if constexpr (expected_tag != 0) {
186 if (_csize != 0 && _etype.
code != expected_tag) {
191 for (
size_t _i = 0; _i < _csize; ++_i) {
#define BOTTLE_TAG_STRING
bool read(yarp::os::idl::WireReader &reader) override
return_get_locations_list()=default
std::vector< std::string > locations
std::string toString() const
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 readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
IDL-friendly connection writer.
bool writeBool(bool x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const