18 metadataMap(metadataMap)
25 if (!read_metadataMap(reader)) {
28 if (reader.isError()) {
37 yarp::os::idl::WireReader reader(connection);
38 if (!reader.readListHeader(1)) {
50 if (!write_metadataMap(writer)) {
53 if (writer.isError()) {
62 yarp::os::idl::WireWriter writer(connection);
63 if (!writer.writeListHeader(1)) {
76 if (!yarp::os::Portable::copyPortable(*
this, b)) {
83bool rawValuesKeyMetadataMap::read_metadataMap(yarp::os::idl::WireReader& reader)
85 if (reader.noMore()) {
90 yarp::os::idl::WireState _ktype;
91 yarp::os::idl::WireState _vtype;
92 reader.readMapBegin(_ktype, _vtype, _csize);
93 for (
size_t _i = 0; _i < _csize; ++_i) {
95 yarp::os::idl::WireState _lst;
96 reader.readListBegin(_lst, _msize);
98 if (reader.noMore()) {
102 if (!reader.readString(_key)) {
107 if (reader.noMore()) {
111 if (!reader.readNested(_val)) {
115 reader.readListEnd();
122bool rawValuesKeyMetadataMap::write_metadataMap(
const yarp::os::idl::WireWriter& writer)
const
124 if (!writer.writeMapBegin(BOTTLE_TAG_STRING, BOTTLE_TAG_LIST,
metadataMap.size())) {
128 if (!writer.writeListBegin(0,2)) {
131 if (!writer.writeString(_item.first)) {
134 if (!writer.writeNested(_item.second)) {
137 if (!writer.writeListEnd()) {
141 if (!writer.writeMapEnd()) {
148bool rawValuesKeyMetadataMap::nested_read_metadataMap(yarp::os::idl::WireReader& reader)
150 if (reader.noMore()) {
155 yarp::os::idl::WireState _ktype;
156 yarp::os::idl::WireState _vtype;
157 reader.readMapBegin(_ktype, _vtype, _csize);
158 for (
size_t _i = 0; _i < _csize; ++_i) {
160 yarp::os::idl::WireState _lst;
161 reader.readListBegin(_lst, _msize);
163 if (reader.noMore()) {
167 if (!reader.readString(_key)) {
172 if (reader.noMore()) {
176 if (!reader.readNested(_val)) {
180 reader.readListEnd();
187bool rawValuesKeyMetadataMap::nested_write_metadataMap(
const yarp::os::idl::WireWriter& writer)
const
189 if (!writer.writeMapBegin(BOTTLE_TAG_STRING, BOTTLE_TAG_LIST,
metadataMap.size())) {
193 if (!writer.writeListBegin(0,2)) {
196 if (!writer.writeString(_item.first)) {
199 if (!writer.writeNested(_item.second)) {
202 if (!writer.writeListEnd()) {
206 if (!writer.writeMapEnd()) {
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.