17 const std::int32_t size) :
19 rawValueNames(rawValueNames),
27 if (!read_rawValueNames(reader)) {
30 if (!read_size(reader)) {
33 if (reader.isError()) {
42 yarp::os::idl::WireReader reader(connection);
43 if (!reader.readListHeader(2)) {
55 if (!write_rawValueNames(writer)) {
58 if (!write_size(writer)) {
61 if (writer.isError()) {
70 yarp::os::idl::WireWriter writer(connection);
71 if (!writer.writeListHeader(2)) {
84 if (!yarp::os::Portable::copyPortable(*
this, b)) {
91bool rawValuesKeyMetadata::read_rawValueNames(yarp::os::idl::WireReader& reader)
93 if (reader.noMore()) {
98 yarp::os::idl::WireState _etype;
99 reader.readListBegin(_etype, _csize);
101 constexpr int expected_tag = ((BOTTLE_TAG_STRING) & (~BOTTLE_TAG_LIST));
102 if constexpr (expected_tag != 0) {
103 if (_csize != 0 && _etype.code != expected_tag) {
108 for (
size_t _i = 0; _i < _csize; ++_i) {
109 if (reader.noMore()) {
118 reader.readListEnd();
123bool rawValuesKeyMetadata::write_rawValueNames(
const yarp::os::idl::WireWriter& writer)
const
125 if (!writer.writeListBegin(BOTTLE_TAG_STRING,
rawValueNames.size())) {
129 if (!writer.writeString(_item,
true)) {
133 if (!writer.writeListEnd()) {
140bool rawValuesKeyMetadata::nested_read_rawValueNames(yarp::os::idl::WireReader& reader)
142 if (reader.noMore()) {
147 yarp::os::idl::WireState _etype;
148 reader.readListBegin(_etype, _csize);
150 constexpr int expected_tag = ((BOTTLE_TAG_STRING) & (~BOTTLE_TAG_LIST));
151 if constexpr (expected_tag != 0) {
152 if (_csize != 0 && _etype.code != expected_tag) {
157 for (
size_t _i = 0; _i < _csize; ++_i) {
158 if (reader.noMore()) {
167 reader.readListEnd();
172bool rawValuesKeyMetadata::nested_write_rawValueNames(
const yarp::os::idl::WireWriter& writer)
const
174 if (!writer.writeListBegin(BOTTLE_TAG_STRING,
rawValueNames.size())) {
178 if (!writer.writeString(_item,
true)) {
182 if (!writer.writeListEnd()) {
189bool rawValuesKeyMetadata::read_size(yarp::os::idl::WireReader& reader)
191 if (reader.noMore()) {
195 if (!reader.readI32(
size)) {
203bool rawValuesKeyMetadata::write_size(
const yarp::os::idl::WireWriter& writer)
const
205 if (!writer.writeI32(
size)) {
212bool rawValuesKeyMetadata::nested_read_size(yarp::os::idl::WireReader& reader)
214 if (reader.noMore()) {
218 if (!reader.readI32(
size)) {
226bool rawValuesKeyMetadata::nested_write_size(
const yarp::os::idl::WireWriter& writer)
const
228 if (!writer.writeI32(
size)) {
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.