18 const std::string& description) :
22 description(description)
29 if (!read_map_id(reader)) {
32 if (!read_points(reader)) {
35 if (!read_description(reader)) {
60 if (!write_map_id(writer)) {
63 if (!write_points(writer)) {
66 if (!write_description(writer)) {
156 if constexpr (expected_tag != 0) {
157 if (_csize != 0 && _etype.
code != expected_tag) {
162 for (
size_t _i = 0; _i < _csize; ++_i) {
182 for (
const auto& _item :
points) {
205 if constexpr (expected_tag != 0) {
206 if (_csize != 0 && _etype.
code != expected_tag) {
211 for (
size_t _i = 0; _i < _csize; ++_i) {
231 for (
const auto& _item :
points) {
bool read(yarp::os::idl::WireReader &reader) override
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string description
user defined string
std::string map_id
name of the map
std::string toString() const
std::vector< yarp::math::Vec2D< double > > points
list of points which define the vertices of the area
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)
bool readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeString(const std::string &str, bool skip_tag=false) 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.