YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
IMap2DMsgs.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
// Autogenerated by Thrift Compiler (0.14.1-yarped)
7
//
8
// This is an automatically generated file.
9
// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11
#include <
IMap2DMsgs.h
>
12
13
#include <
yarp/os/idl/WireTypes.h
>
14
15
#include <algorithm>
16
17
// clear_all_maps_RPC helper class declaration
18
class
IMap2DMsgs_clear_all_maps_RPC_helper
:
19
public
yarp::os::Portable
20
{
21
public
:
22
IMap2DMsgs_clear_all_maps_RPC_helper
() =
default
;
23
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
24
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
25
26
class
Command
:
27
public
yarp::os::idl::WirePortable
28
{
29
public
:
30
Command
() =
default
;
31
~Command
()
override
=
default
;
32
33
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
34
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
35
36
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
37
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
38
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
39
40
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
41
bool
readTag
(
yarp::os::idl::WireReader
& reader);
42
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
43
};
44
45
class
Reply
:
46
public
yarp::os::idl::WirePortable
47
{
48
public
:
49
Reply
() =
default
;
50
~Reply
()
override
=
default
;
51
52
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
53
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
54
55
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
56
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
57
58
bool
return_helper
{
false
};
59
};
60
61
using
funcptr_t
= bool (*)();
62
void
call
(
IMap2DMsgs
* ptr);
63
64
Command
cmd
;
65
Reply
reply
;
66
67
static
constexpr
const
char
*
s_tag
{
"clear_all_maps_RPC"
};
68
static
constexpr
size_t
s_tag_len
{4};
69
static
constexpr
size_t
s_cmd_len
{4};
70
static
constexpr
size_t
s_reply_len
{1};
71
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_all_maps_RPC()"
};
72
static
constexpr
const
char
*
s_help
{
""
};
73
};
74
75
// store_map_RPC helper class declaration
76
class
IMap2DMsgs_store_map_RPC_helper
:
77
public
yarp::os::Portable
78
{
79
public
:
80
IMap2DMsgs_store_map_RPC_helper
() =
default
;
81
explicit
IMap2DMsgs_store_map_RPC_helper
(
const
yarp::dev::Nav2D::MapGrid2D
& themap);
82
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
83
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
84
85
class
Command
:
86
public
yarp::os::idl::WirePortable
87
{
88
public
:
89
Command
() =
default
;
90
explicit
Command
(
const
yarp::dev::Nav2D::MapGrid2D
&
themap
);
91
92
~Command
()
override
=
default
;
93
94
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
95
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
96
97
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
98
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
99
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
100
101
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
102
bool
readTag
(
yarp::os::idl::WireReader
& reader);
103
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
104
105
yarp::dev::Nav2D::MapGrid2D
themap
{};
106
};
107
108
class
Reply
:
109
public
yarp::os::idl::WirePortable
110
{
111
public
:
112
Reply
() =
default
;
113
~Reply
()
override
=
default
;
114
115
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
116
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
117
118
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
119
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
120
121
bool
return_helper
{
false
};
122
};
123
124
using
funcptr_t
= bool (*)(
const
yarp::dev::Nav2D::MapGrid2D
&);
125
void
call
(
IMap2DMsgs
* ptr);
126
127
Command
cmd
;
128
Reply
reply
;
129
130
static
constexpr
const
char
*
s_tag
{
"store_map_RPC"
};
131
static
constexpr
size_t
s_tag_len
{3};
132
static
constexpr
size_t
s_cmd_len
{4};
133
static
constexpr
size_t
s_reply_len
{1};
134
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::store_map_RPC(const yarp::dev::Nav2D::MapGrid2D& themap)"
};
135
static
constexpr
const
char
*
s_help
{
""
};
136
};
137
138
// get_map_RPC helper class declaration
139
class
IMap2DMsgs_get_map_RPC_helper
:
140
public
yarp::os::Portable
141
{
142
public
:
143
IMap2DMsgs_get_map_RPC_helper
() =
default
;
144
explicit
IMap2DMsgs_get_map_RPC_helper
(
const
std::string& map_name);
145
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
146
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
147
148
class
Command
:
149
public
yarp::os::idl::WirePortable
150
{
151
public
:
152
Command
() =
default
;
153
explicit
Command
(
const
std::string&
map_name
);
154
155
~Command
()
override
=
default
;
156
157
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
158
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
159
160
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
161
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
162
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
163
164
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
165
bool
readTag
(
yarp::os::idl::WireReader
& reader);
166
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
167
168
std::string
map_name
{};
169
};
170
171
class
Reply
:
172
public
yarp::os::idl::WirePortable
173
{
174
public
:
175
Reply
() =
default
;
176
~Reply
()
override
=
default
;
177
178
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
179
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
180
181
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
182
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
183
184
return_get_map
return_helper
{};
185
};
186
187
using
funcptr_t
=
return_get_map
(*)(
const
std::string&);
188
void
call
(
IMap2DMsgs
* ptr);
189
190
Command
cmd
;
191
Reply
reply
;
192
193
static
constexpr
const
char
*
s_tag
{
"get_map_RPC"
};
194
static
constexpr
size_t
s_tag_len
{3};
195
static
constexpr
size_t
s_cmd_len
{4};
196
static
constexpr
size_t
s_reply_len
{2};
197
static
constexpr
const
char
*
s_prototype
{
"return_get_map IMap2DMsgs::get_map_RPC(const std::string& map_name)"
};
198
static
constexpr
const
char
*
s_help
{
""
};
199
};
200
201
// get_map_names_RPC helper class declaration
202
class
IMap2DMsgs_get_map_names_RPC_helper
:
203
public
yarp::os::Portable
204
{
205
public
:
206
IMap2DMsgs_get_map_names_RPC_helper
() =
default
;
207
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
208
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
209
210
class
Command
:
211
public
yarp::os::idl::WirePortable
212
{
213
public
:
214
Command
() =
default
;
215
~Command
()
override
=
default
;
216
217
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
218
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
219
220
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
221
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
222
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
223
224
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
225
bool
readTag
(
yarp::os::idl::WireReader
& reader);
226
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
227
};
228
229
class
Reply
:
230
public
yarp::os::idl::WirePortable
231
{
232
public
:
233
Reply
() =
default
;
234
~Reply
()
override
=
default
;
235
236
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
237
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
238
239
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
240
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
241
242
return_get_map_names
return_helper
{};
243
};
244
245
using
funcptr_t
=
return_get_map_names
(*)();
246
void
call
(
IMap2DMsgs
* ptr);
247
248
Command
cmd
;
249
Reply
reply
;
250
251
static
constexpr
const
char
*
s_tag
{
"get_map_names_RPC"
};
252
static
constexpr
size_t
s_tag_len
{4};
253
static
constexpr
size_t
s_cmd_len
{4};
254
static
constexpr
size_t
s_reply_len
{2};
255
static
constexpr
const
char
*
s_prototype
{
"return_get_map_names IMap2DMsgs::get_map_names_RPC()"
};
256
static
constexpr
const
char
*
s_help
{
""
};
257
};
258
259
// remove_map_RPC helper class declaration
260
class
IMap2DMsgs_remove_map_RPC_helper
:
261
public
yarp::os::Portable
262
{
263
public
:
264
IMap2DMsgs_remove_map_RPC_helper
() =
default
;
265
explicit
IMap2DMsgs_remove_map_RPC_helper
(
const
std::string& map_name);
266
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
267
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
268
269
class
Command
:
270
public
yarp::os::idl::WirePortable
271
{
272
public
:
273
Command
() =
default
;
274
explicit
Command
(
const
std::string&
map_name
);
275
276
~Command
()
override
=
default
;
277
278
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
279
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
280
281
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
282
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
283
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
284
285
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
286
bool
readTag
(
yarp::os::idl::WireReader
& reader);
287
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
288
289
std::string
map_name
{};
290
};
291
292
class
Reply
:
293
public
yarp::os::idl::WirePortable
294
{
295
public
:
296
Reply
() =
default
;
297
~Reply
()
override
=
default
;
298
299
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
300
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
301
302
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
303
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
304
305
bool
return_helper
{
false
};
306
};
307
308
using
funcptr_t
= bool (*)(
const
std::string&);
309
void
call
(
IMap2DMsgs
* ptr);
310
311
Command
cmd
;
312
Reply
reply
;
313
314
static
constexpr
const
char
*
s_tag
{
"remove_map_RPC"
};
315
static
constexpr
size_t
s_tag_len
{3};
316
static
constexpr
size_t
s_cmd_len
{4};
317
static
constexpr
size_t
s_reply_len
{1};
318
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::remove_map_RPC(const std::string& map_name)"
};
319
static
constexpr
const
char
*
s_help
{
""
};
320
};
321
322
// store_location_RPC helper class declaration
323
class
IMap2DMsgs_store_location_RPC_helper
:
324
public
yarp::os::Portable
325
{
326
public
:
327
IMap2DMsgs_store_location_RPC_helper
() =
default
;
328
IMap2DMsgs_store_location_RPC_helper
(
const
std::string& location_name,
const
yarp::dev::Nav2D::Map2DLocation
& loc);
329
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
330
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
331
332
class
Command
:
333
public
yarp::os::idl::WirePortable
334
{
335
public
:
336
Command
() =
default
;
337
Command
(
const
std::string&
location_name
,
const
yarp::dev::Nav2D::Map2DLocation
&
loc
);
338
339
~Command
()
override
=
default
;
340
341
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
342
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
343
344
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
345
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
346
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
347
348
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
349
bool
readTag
(
yarp::os::idl::WireReader
& reader);
350
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
351
352
std::string
location_name
{};
353
yarp::dev::Nav2D::Map2DLocation
loc
{};
354
};
355
356
class
Reply
:
357
public
yarp::os::idl::WirePortable
358
{
359
public
:
360
Reply
() =
default
;
361
~Reply
()
override
=
default
;
362
363
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
364
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
365
366
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
367
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
368
369
bool
return_helper
{
false
};
370
};
371
372
using
funcptr_t
= bool (*)(
const
std::string&,
const
yarp::dev::Nav2D::Map2DLocation
&);
373
void
call
(
IMap2DMsgs
* ptr);
374
375
Command
cmd
;
376
Reply
reply
;
377
378
static
constexpr
const
char
*
s_tag
{
"store_location_RPC"
};
379
static
constexpr
size_t
s_tag_len
{3};
380
static
constexpr
size_t
s_cmd_len
{5};
381
static
constexpr
size_t
s_reply_len
{1};
382
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::store_location_RPC(const std::string& location_name, const yarp::dev::Nav2D::Map2DLocation& loc)"
};
383
static
constexpr
const
char
*
s_help
{
""
};
384
};
385
386
// store_area_RPC helper class declaration
387
class
IMap2DMsgs_store_area_RPC_helper
:
388
public
yarp::os::Portable
389
{
390
public
:
391
IMap2DMsgs_store_area_RPC_helper
() =
default
;
392
IMap2DMsgs_store_area_RPC_helper
(
const
std::string& area_name,
const
yarp::dev::Nav2D::Map2DArea
& area);
393
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
394
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
395
396
class
Command
:
397
public
yarp::os::idl::WirePortable
398
{
399
public
:
400
Command
() =
default
;
401
Command
(
const
std::string&
area_name
,
const
yarp::dev::Nav2D::Map2DArea
&
area
);
402
403
~Command
()
override
=
default
;
404
405
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
406
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
407
408
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
409
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
410
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
411
412
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
413
bool
readTag
(
yarp::os::idl::WireReader
& reader);
414
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
415
416
std::string
area_name
{};
417
yarp::dev::Nav2D::Map2DArea
area
{};
418
};
419
420
class
Reply
:
421
public
yarp::os::idl::WirePortable
422
{
423
public
:
424
Reply
() =
default
;
425
~Reply
()
override
=
default
;
426
427
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
428
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
429
430
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
431
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
432
433
bool
return_helper
{
false
};
434
};
435
436
using
funcptr_t
= bool (*)(
const
std::string&,
const
yarp::dev::Nav2D::Map2DArea
&);
437
void
call
(
IMap2DMsgs
* ptr);
438
439
Command
cmd
;
440
Reply
reply
;
441
442
static
constexpr
const
char
*
s_tag
{
"store_area_RPC"
};
443
static
constexpr
size_t
s_tag_len
{3};
444
static
constexpr
size_t
s_cmd_len
{5};
445
static
constexpr
size_t
s_reply_len
{1};
446
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::store_area_RPC(const std::string& area_name, const yarp::dev::Nav2D::Map2DArea& area)"
};
447
static
constexpr
const
char
*
s_help
{
""
};
448
};
449
450
// store_path_RPC helper class declaration
451
class
IMap2DMsgs_store_path_RPC_helper
:
452
public
yarp::os::Portable
453
{
454
public
:
455
IMap2DMsgs_store_path_RPC_helper
() =
default
;
456
IMap2DMsgs_store_path_RPC_helper
(
const
std::string& path_name,
const
yarp::dev::Nav2D::Map2DPath
& path);
457
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
458
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
459
460
class
Command
:
461
public
yarp::os::idl::WirePortable
462
{
463
public
:
464
Command
() =
default
;
465
Command
(
const
std::string&
path_name
,
const
yarp::dev::Nav2D::Map2DPath
&
path
);
466
467
~Command
()
override
=
default
;
468
469
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
470
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
471
472
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
473
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
474
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
475
476
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
477
bool
readTag
(
yarp::os::idl::WireReader
& reader);
478
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
479
480
std::string
path_name
{};
481
yarp::dev::Nav2D::Map2DPath
path
{};
482
};
483
484
class
Reply
:
485
public
yarp::os::idl::WirePortable
486
{
487
public
:
488
Reply
() =
default
;
489
~Reply
()
override
=
default
;
490
491
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
492
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
493
494
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
495
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
496
497
bool
return_helper
{
false
};
498
};
499
500
using
funcptr_t
= bool (*)(
const
std::string&,
const
yarp::dev::Nav2D::Map2DPath
&);
501
void
call
(
IMap2DMsgs
* ptr);
502
503
Command
cmd
;
504
Reply
reply
;
505
506
static
constexpr
const
char
*
s_tag
{
"store_path_RPC"
};
507
static
constexpr
size_t
s_tag_len
{3};
508
static
constexpr
size_t
s_cmd_len
{5};
509
static
constexpr
size_t
s_reply_len
{1};
510
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::store_path_RPC(const std::string& path_name, const yarp::dev::Nav2D::Map2DPath& path)"
};
511
static
constexpr
const
char
*
s_help
{
""
};
512
};
513
514
// get_location_RPC helper class declaration
515
class
IMap2DMsgs_get_location_RPC_helper
:
516
public
yarp::os::Portable
517
{
518
public
:
519
IMap2DMsgs_get_location_RPC_helper
() =
default
;
520
explicit
IMap2DMsgs_get_location_RPC_helper
(
const
std::string& location_name);
521
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
522
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
523
524
class
Command
:
525
public
yarp::os::idl::WirePortable
526
{
527
public
:
528
Command
() =
default
;
529
explicit
Command
(
const
std::string&
location_name
);
530
531
~Command
()
override
=
default
;
532
533
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
534
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
535
536
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
537
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
538
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
539
540
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
541
bool
readTag
(
yarp::os::idl::WireReader
& reader);
542
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
543
544
std::string
location_name
{};
545
};
546
547
class
Reply
:
548
public
yarp::os::idl::WirePortable
549
{
550
public
:
551
Reply
() =
default
;
552
~Reply
()
override
=
default
;
553
554
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
555
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
556
557
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
558
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
559
560
return_get_location
return_helper
{};
561
};
562
563
using
funcptr_t
=
return_get_location
(*)(
const
std::string&);
564
void
call
(
IMap2DMsgs
* ptr);
565
566
Command
cmd
;
567
Reply
reply
;
568
569
static
constexpr
const
char
*
s_tag
{
"get_location_RPC"
};
570
static
constexpr
size_t
s_tag_len
{3};
571
static
constexpr
size_t
s_cmd_len
{4};
572
static
constexpr
size_t
s_reply_len
{2};
573
static
constexpr
const
char
*
s_prototype
{
"return_get_location IMap2DMsgs::get_location_RPC(const std::string& location_name)"
};
574
static
constexpr
const
char
*
s_help
{
""
};
575
};
576
577
// get_area_RPC helper class declaration
578
class
IMap2DMsgs_get_area_RPC_helper
:
579
public
yarp::os::Portable
580
{
581
public
:
582
IMap2DMsgs_get_area_RPC_helper
() =
default
;
583
explicit
IMap2DMsgs_get_area_RPC_helper
(
const
std::string& area_name);
584
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
585
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
586
587
class
Command
:
588
public
yarp::os::idl::WirePortable
589
{
590
public
:
591
Command
() =
default
;
592
explicit
Command
(
const
std::string&
area_name
);
593
594
~Command
()
override
=
default
;
595
596
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
597
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
598
599
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
600
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
601
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
602
603
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
604
bool
readTag
(
yarp::os::idl::WireReader
& reader);
605
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
606
607
std::string
area_name
{};
608
};
609
610
class
Reply
:
611
public
yarp::os::idl::WirePortable
612
{
613
public
:
614
Reply
() =
default
;
615
~Reply
()
override
=
default
;
616
617
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
618
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
619
620
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
621
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
622
623
return_get_area
return_helper
{};
624
};
625
626
using
funcptr_t
=
return_get_area
(*)(
const
std::string&);
627
void
call
(
IMap2DMsgs
* ptr);
628
629
Command
cmd
;
630
Reply
reply
;
631
632
static
constexpr
const
char
*
s_tag
{
"get_area_RPC"
};
633
static
constexpr
size_t
s_tag_len
{3};
634
static
constexpr
size_t
s_cmd_len
{4};
635
static
constexpr
size_t
s_reply_len
{2};
636
static
constexpr
const
char
*
s_prototype
{
"return_get_area IMap2DMsgs::get_area_RPC(const std::string& area_name)"
};
637
static
constexpr
const
char
*
s_help
{
""
};
638
};
639
640
// get_path_RPC helper class declaration
641
class
IMap2DMsgs_get_path_RPC_helper
:
642
public
yarp::os::Portable
643
{
644
public
:
645
IMap2DMsgs_get_path_RPC_helper
() =
default
;
646
explicit
IMap2DMsgs_get_path_RPC_helper
(
const
std::string& path_name);
647
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
648
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
649
650
class
Command
:
651
public
yarp::os::idl::WirePortable
652
{
653
public
:
654
Command
() =
default
;
655
explicit
Command
(
const
std::string&
path_name
);
656
657
~Command
()
override
=
default
;
658
659
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
660
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
661
662
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
663
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
664
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
665
666
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
667
bool
readTag
(
yarp::os::idl::WireReader
& reader);
668
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
669
670
std::string
path_name
{};
671
};
672
673
class
Reply
:
674
public
yarp::os::idl::WirePortable
675
{
676
public
:
677
Reply
() =
default
;
678
~Reply
()
override
=
default
;
679
680
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
681
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
682
683
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
684
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
685
686
return_get_path
return_helper
{};
687
};
688
689
using
funcptr_t
=
return_get_path
(*)(
const
std::string&);
690
void
call
(
IMap2DMsgs
* ptr);
691
692
Command
cmd
;
693
Reply
reply
;
694
695
static
constexpr
const
char
*
s_tag
{
"get_path_RPC"
};
696
static
constexpr
size_t
s_tag_len
{3};
697
static
constexpr
size_t
s_cmd_len
{4};
698
static
constexpr
size_t
s_reply_len
{2};
699
static
constexpr
const
char
*
s_prototype
{
"return_get_path IMap2DMsgs::get_path_RPC(const std::string& path_name)"
};
700
static
constexpr
const
char
*
s_help
{
""
};
701
};
702
703
// get_locations_list_RPC helper class declaration
704
class
IMap2DMsgs_get_locations_list_RPC_helper
:
705
public
yarp::os::Portable
706
{
707
public
:
708
IMap2DMsgs_get_locations_list_RPC_helper
() =
default
;
709
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
710
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
711
712
class
Command
:
713
public
yarp::os::idl::WirePortable
714
{
715
public
:
716
Command
() =
default
;
717
~Command
()
override
=
default
;
718
719
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
720
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
721
722
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
723
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
724
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
725
726
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
727
bool
readTag
(
yarp::os::idl::WireReader
& reader);
728
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
729
};
730
731
class
Reply
:
732
public
yarp::os::idl::WirePortable
733
{
734
public
:
735
Reply
() =
default
;
736
~Reply
()
override
=
default
;
737
738
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
739
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
740
741
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
742
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
743
744
return_get_locations_list
return_helper
{};
745
};
746
747
using
funcptr_t
=
return_get_locations_list
(*)();
748
void
call
(
IMap2DMsgs
* ptr);
749
750
Command
cmd
;
751
Reply
reply
;
752
753
static
constexpr
const
char
*
s_tag
{
"get_locations_list_RPC"
};
754
static
constexpr
size_t
s_tag_len
{4};
755
static
constexpr
size_t
s_cmd_len
{4};
756
static
constexpr
size_t
s_reply_len
{2};
757
static
constexpr
const
char
*
s_prototype
{
"return_get_locations_list IMap2DMsgs::get_locations_list_RPC()"
};
758
static
constexpr
const
char
*
s_help
{
""
};
759
};
760
761
// get_areas_list_RPC helper class declaration
762
class
IMap2DMsgs_get_areas_list_RPC_helper
:
763
public
yarp::os::Portable
764
{
765
public
:
766
IMap2DMsgs_get_areas_list_RPC_helper
() =
default
;
767
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
768
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
769
770
class
Command
:
771
public
yarp::os::idl::WirePortable
772
{
773
public
:
774
Command
() =
default
;
775
~Command
()
override
=
default
;
776
777
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
778
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
779
780
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
781
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
782
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
783
784
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
785
bool
readTag
(
yarp::os::idl::WireReader
& reader);
786
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
787
};
788
789
class
Reply
:
790
public
yarp::os::idl::WirePortable
791
{
792
public
:
793
Reply
() =
default
;
794
~Reply
()
override
=
default
;
795
796
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
797
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
798
799
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
800
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
801
802
return_get_areas_list
return_helper
{};
803
};
804
805
using
funcptr_t
=
return_get_areas_list
(*)();
806
void
call
(
IMap2DMsgs
* ptr);
807
808
Command
cmd
;
809
Reply
reply
;
810
811
static
constexpr
const
char
*
s_tag
{
"get_areas_list_RPC"
};
812
static
constexpr
size_t
s_tag_len
{4};
813
static
constexpr
size_t
s_cmd_len
{4};
814
static
constexpr
size_t
s_reply_len
{2};
815
static
constexpr
const
char
*
s_prototype
{
"return_get_areas_list IMap2DMsgs::get_areas_list_RPC()"
};
816
static
constexpr
const
char
*
s_help
{
""
};
817
};
818
819
// get_paths_list_RPC helper class declaration
820
class
IMap2DMsgs_get_paths_list_RPC_helper
:
821
public
yarp::os::Portable
822
{
823
public
:
824
IMap2DMsgs_get_paths_list_RPC_helper
() =
default
;
825
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
826
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
827
828
class
Command
:
829
public
yarp::os::idl::WirePortable
830
{
831
public
:
832
Command
() =
default
;
833
~Command
()
override
=
default
;
834
835
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
836
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
837
838
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
839
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
840
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
841
842
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
843
bool
readTag
(
yarp::os::idl::WireReader
& reader);
844
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
845
};
846
847
class
Reply
:
848
public
yarp::os::idl::WirePortable
849
{
850
public
:
851
Reply
() =
default
;
852
~Reply
()
override
=
default
;
853
854
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
855
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
856
857
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
858
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
859
860
return_get_paths_list
return_helper
{};
861
};
862
863
using
funcptr_t
=
return_get_paths_list
(*)();
864
void
call
(
IMap2DMsgs
* ptr);
865
866
Command
cmd
;
867
Reply
reply
;
868
869
static
constexpr
const
char
*
s_tag
{
"get_paths_list_RPC"
};
870
static
constexpr
size_t
s_tag_len
{4};
871
static
constexpr
size_t
s_cmd_len
{4};
872
static
constexpr
size_t
s_reply_len
{2};
873
static
constexpr
const
char
*
s_prototype
{
"return_get_paths_list IMap2DMsgs::get_paths_list_RPC()"
};
874
static
constexpr
const
char
*
s_help
{
""
};
875
};
876
877
// get_all_locations_RPC helper class declaration
878
class
IMap2DMsgs_get_all_locations_RPC_helper
:
879
public
yarp::os::Portable
880
{
881
public
:
882
IMap2DMsgs_get_all_locations_RPC_helper
() =
default
;
883
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
884
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
885
886
class
Command
:
887
public
yarp::os::idl::WirePortable
888
{
889
public
:
890
Command
() =
default
;
891
~Command
()
override
=
default
;
892
893
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
894
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
895
896
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
897
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
898
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
899
900
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
901
bool
readTag
(
yarp::os::idl::WireReader
& reader);
902
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
903
};
904
905
class
Reply
:
906
public
yarp::os::idl::WirePortable
907
{
908
public
:
909
Reply
() =
default
;
910
~Reply
()
override
=
default
;
911
912
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
913
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
914
915
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
916
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
917
918
return_get_all_locations
return_helper
{};
919
};
920
921
using
funcptr_t
=
return_get_all_locations
(*)();
922
void
call
(
IMap2DMsgs
* ptr);
923
924
Command
cmd
;
925
Reply
reply
;
926
927
static
constexpr
const
char
*
s_tag
{
"get_all_locations_RPC"
};
928
static
constexpr
size_t
s_tag_len
{4};
929
static
constexpr
size_t
s_cmd_len
{4};
930
static
constexpr
size_t
s_reply_len
{2};
931
static
constexpr
const
char
*
s_prototype
{
"return_get_all_locations IMap2DMsgs::get_all_locations_RPC()"
};
932
static
constexpr
const
char
*
s_help
{
""
};
933
};
934
935
// get_all_areas_RPC helper class declaration
936
class
IMap2DMsgs_get_all_areas_RPC_helper
:
937
public
yarp::os::Portable
938
{
939
public
:
940
IMap2DMsgs_get_all_areas_RPC_helper
() =
default
;
941
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
942
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
943
944
class
Command
:
945
public
yarp::os::idl::WirePortable
946
{
947
public
:
948
Command
() =
default
;
949
~Command
()
override
=
default
;
950
951
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
952
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
953
954
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
955
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
956
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
957
958
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
959
bool
readTag
(
yarp::os::idl::WireReader
& reader);
960
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
961
};
962
963
class
Reply
:
964
public
yarp::os::idl::WirePortable
965
{
966
public
:
967
Reply
() =
default
;
968
~Reply
()
override
=
default
;
969
970
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
971
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
972
973
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
974
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
975
976
return_get_all_areas
return_helper
{};
977
};
978
979
using
funcptr_t
=
return_get_all_areas
(*)();
980
void
call
(
IMap2DMsgs
* ptr);
981
982
Command
cmd
;
983
Reply
reply
;
984
985
static
constexpr
const
char
*
s_tag
{
"get_all_areas_RPC"
};
986
static
constexpr
size_t
s_tag_len
{4};
987
static
constexpr
size_t
s_cmd_len
{4};
988
static
constexpr
size_t
s_reply_len
{2};
989
static
constexpr
const
char
*
s_prototype
{
"return_get_all_areas IMap2DMsgs::get_all_areas_RPC()"
};
990
static
constexpr
const
char
*
s_help
{
""
};
991
};
992
993
// get_all_paths_RPC helper class declaration
994
class
IMap2DMsgs_get_all_paths_RPC_helper
:
995
public
yarp::os::Portable
996
{
997
public
:
998
IMap2DMsgs_get_all_paths_RPC_helper
() =
default
;
999
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1000
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1001
1002
class
Command
:
1003
public
yarp::os::idl::WirePortable
1004
{
1005
public
:
1006
Command
() =
default
;
1007
~Command
()
override
=
default
;
1008
1009
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1010
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1011
1012
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1013
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1014
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1015
1016
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1017
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1018
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1019
};
1020
1021
class
Reply
:
1022
public
yarp::os::idl::WirePortable
1023
{
1024
public
:
1025
Reply
() =
default
;
1026
~Reply
()
override
=
default
;
1027
1028
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1029
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1030
1031
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1032
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1033
1034
return_get_all_paths
return_helper
{};
1035
};
1036
1037
using
funcptr_t
=
return_get_all_paths
(*)();
1038
void
call
(
IMap2DMsgs
* ptr);
1039
1040
Command
cmd
;
1041
Reply
reply
;
1042
1043
static
constexpr
const
char
*
s_tag
{
"get_all_paths_RPC"
};
1044
static
constexpr
size_t
s_tag_len
{4};
1045
static
constexpr
size_t
s_cmd_len
{4};
1046
static
constexpr
size_t
s_reply_len
{2};
1047
static
constexpr
const
char
*
s_prototype
{
"return_get_all_paths IMap2DMsgs::get_all_paths_RPC()"
};
1048
static
constexpr
const
char
*
s_help
{
""
};
1049
};
1050
1051
// rename_location_RPC helper class declaration
1052
class
IMap2DMsgs_rename_location_RPC_helper
:
1053
public
yarp::os::Portable
1054
{
1055
public
:
1056
IMap2DMsgs_rename_location_RPC_helper
() =
default
;
1057
IMap2DMsgs_rename_location_RPC_helper
(
const
std::string& original_name,
const
std::string& new_name);
1058
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1059
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1060
1061
class
Command
:
1062
public
yarp::os::idl::WirePortable
1063
{
1064
public
:
1065
Command
() =
default
;
1066
Command
(
const
std::string&
original_name
,
const
std::string&
new_name
);
1067
1068
~Command
()
override
=
default
;
1069
1070
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1071
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1072
1073
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1074
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1075
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1076
1077
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1078
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1079
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1080
1081
std::string
original_name
{};
1082
std::string
new_name
{};
1083
};
1084
1085
class
Reply
:
1086
public
yarp::os::idl::WirePortable
1087
{
1088
public
:
1089
Reply
() =
default
;
1090
~Reply
()
override
=
default
;
1091
1092
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1093
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1094
1095
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1096
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1097
1098
bool
return_helper
{
false
};
1099
};
1100
1101
using
funcptr_t
= bool (*)(
const
std::string&,
const
std::string&);
1102
void
call
(
IMap2DMsgs
* ptr);
1103
1104
Command
cmd
;
1105
Reply
reply
;
1106
1107
static
constexpr
const
char
*
s_tag
{
"rename_location_RPC"
};
1108
static
constexpr
size_t
s_tag_len
{3};
1109
static
constexpr
size_t
s_cmd_len
{5};
1110
static
constexpr
size_t
s_reply_len
{1};
1111
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::rename_location_RPC(const std::string& original_name, const std::string& new_name)"
};
1112
static
constexpr
const
char
*
s_help
{
""
};
1113
};
1114
1115
// delete_location_RPC helper class declaration
1116
class
IMap2DMsgs_delete_location_RPC_helper
:
1117
public
yarp::os::Portable
1118
{
1119
public
:
1120
IMap2DMsgs_delete_location_RPC_helper
() =
default
;
1121
explicit
IMap2DMsgs_delete_location_RPC_helper
(
const
std::string& location_name);
1122
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1123
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1124
1125
class
Command
:
1126
public
yarp::os::idl::WirePortable
1127
{
1128
public
:
1129
Command
() =
default
;
1130
explicit
Command
(
const
std::string&
location_name
);
1131
1132
~Command
()
override
=
default
;
1133
1134
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1135
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1136
1137
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1138
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1139
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1140
1141
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1142
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1143
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1144
1145
std::string
location_name
{};
1146
};
1147
1148
class
Reply
:
1149
public
yarp::os::idl::WirePortable
1150
{
1151
public
:
1152
Reply
() =
default
;
1153
~Reply
()
override
=
default
;
1154
1155
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1156
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1157
1158
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1159
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1160
1161
bool
return_helper
{
false
};
1162
};
1163
1164
using
funcptr_t
= bool (*)(
const
std::string&);
1165
void
call
(
IMap2DMsgs
* ptr);
1166
1167
Command
cmd
;
1168
Reply
reply
;
1169
1170
static
constexpr
const
char
*
s_tag
{
"delete_location_RPC"
};
1171
static
constexpr
size_t
s_tag_len
{3};
1172
static
constexpr
size_t
s_cmd_len
{4};
1173
static
constexpr
size_t
s_reply_len
{1};
1174
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::delete_location_RPC(const std::string& location_name)"
};
1175
static
constexpr
const
char
*
s_help
{
""
};
1176
};
1177
1178
// delete_path_RPC helper class declaration
1179
class
IMap2DMsgs_delete_path_RPC_helper
:
1180
public
yarp::os::Portable
1181
{
1182
public
:
1183
IMap2DMsgs_delete_path_RPC_helper
() =
default
;
1184
explicit
IMap2DMsgs_delete_path_RPC_helper
(
const
std::string& path_name);
1185
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1186
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1187
1188
class
Command
:
1189
public
yarp::os::idl::WirePortable
1190
{
1191
public
:
1192
Command
() =
default
;
1193
explicit
Command
(
const
std::string&
path_name
);
1194
1195
~Command
()
override
=
default
;
1196
1197
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1198
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1199
1200
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1201
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1202
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1203
1204
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1205
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1206
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1207
1208
std::string
path_name
{};
1209
};
1210
1211
class
Reply
:
1212
public
yarp::os::idl::WirePortable
1213
{
1214
public
:
1215
Reply
() =
default
;
1216
~Reply
()
override
=
default
;
1217
1218
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1219
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1220
1221
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1222
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1223
1224
bool
return_helper
{
false
};
1225
};
1226
1227
using
funcptr_t
= bool (*)(
const
std::string&);
1228
void
call
(
IMap2DMsgs
* ptr);
1229
1230
Command
cmd
;
1231
Reply
reply
;
1232
1233
static
constexpr
const
char
*
s_tag
{
"delete_path_RPC"
};
1234
static
constexpr
size_t
s_tag_len
{3};
1235
static
constexpr
size_t
s_cmd_len
{4};
1236
static
constexpr
size_t
s_reply_len
{1};
1237
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::delete_path_RPC(const std::string& path_name)"
};
1238
static
constexpr
const
char
*
s_help
{
""
};
1239
};
1240
1241
// rename_area_RPC helper class declaration
1242
class
IMap2DMsgs_rename_area_RPC_helper
:
1243
public
yarp::os::Portable
1244
{
1245
public
:
1246
IMap2DMsgs_rename_area_RPC_helper
() =
default
;
1247
IMap2DMsgs_rename_area_RPC_helper
(
const
std::string& original_name,
const
std::string& new_name);
1248
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1249
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1250
1251
class
Command
:
1252
public
yarp::os::idl::WirePortable
1253
{
1254
public
:
1255
Command
() =
default
;
1256
Command
(
const
std::string&
original_name
,
const
std::string&
new_name
);
1257
1258
~Command
()
override
=
default
;
1259
1260
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1261
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1262
1263
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1264
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1265
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1266
1267
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1268
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1269
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1270
1271
std::string
original_name
{};
1272
std::string
new_name
{};
1273
};
1274
1275
class
Reply
:
1276
public
yarp::os::idl::WirePortable
1277
{
1278
public
:
1279
Reply
() =
default
;
1280
~Reply
()
override
=
default
;
1281
1282
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1283
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1284
1285
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1286
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1287
1288
bool
return_helper
{
false
};
1289
};
1290
1291
using
funcptr_t
= bool (*)(
const
std::string&,
const
std::string&);
1292
void
call
(
IMap2DMsgs
* ptr);
1293
1294
Command
cmd
;
1295
Reply
reply
;
1296
1297
static
constexpr
const
char
*
s_tag
{
"rename_area_RPC"
};
1298
static
constexpr
size_t
s_tag_len
{3};
1299
static
constexpr
size_t
s_cmd_len
{5};
1300
static
constexpr
size_t
s_reply_len
{1};
1301
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::rename_area_RPC(const std::string& original_name, const std::string& new_name)"
};
1302
static
constexpr
const
char
*
s_help
{
""
};
1303
};
1304
1305
// rename_path_RPC helper class declaration
1306
class
IMap2DMsgs_rename_path_RPC_helper
:
1307
public
yarp::os::Portable
1308
{
1309
public
:
1310
IMap2DMsgs_rename_path_RPC_helper
() =
default
;
1311
IMap2DMsgs_rename_path_RPC_helper
(
const
std::string& original_name,
const
std::string& new_name);
1312
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1313
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1314
1315
class
Command
:
1316
public
yarp::os::idl::WirePortable
1317
{
1318
public
:
1319
Command
() =
default
;
1320
Command
(
const
std::string&
original_name
,
const
std::string&
new_name
);
1321
1322
~Command
()
override
=
default
;
1323
1324
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1325
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1326
1327
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1328
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1329
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1330
1331
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1332
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1333
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1334
1335
std::string
original_name
{};
1336
std::string
new_name
{};
1337
};
1338
1339
class
Reply
:
1340
public
yarp::os::idl::WirePortable
1341
{
1342
public
:
1343
Reply
() =
default
;
1344
~Reply
()
override
=
default
;
1345
1346
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1347
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1348
1349
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1350
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1351
1352
bool
return_helper
{
false
};
1353
};
1354
1355
using
funcptr_t
= bool (*)(
const
std::string&,
const
std::string&);
1356
void
call
(
IMap2DMsgs
* ptr);
1357
1358
Command
cmd
;
1359
Reply
reply
;
1360
1361
static
constexpr
const
char
*
s_tag
{
"rename_path_RPC"
};
1362
static
constexpr
size_t
s_tag_len
{3};
1363
static
constexpr
size_t
s_cmd_len
{5};
1364
static
constexpr
size_t
s_reply_len
{1};
1365
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::rename_path_RPC(const std::string& original_name, const std::string& new_name)"
};
1366
static
constexpr
const
char
*
s_help
{
""
};
1367
};
1368
1369
// delete_area_RPC helper class declaration
1370
class
IMap2DMsgs_delete_area_RPC_helper
:
1371
public
yarp::os::Portable
1372
{
1373
public
:
1374
IMap2DMsgs_delete_area_RPC_helper
() =
default
;
1375
explicit
IMap2DMsgs_delete_area_RPC_helper
(
const
std::string& area_name);
1376
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1377
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1378
1379
class
Command
:
1380
public
yarp::os::idl::WirePortable
1381
{
1382
public
:
1383
Command
() =
default
;
1384
explicit
Command
(
const
std::string&
area_name
);
1385
1386
~Command
()
override
=
default
;
1387
1388
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1389
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1390
1391
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1392
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1393
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1394
1395
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1396
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1397
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1398
1399
std::string
area_name
{};
1400
};
1401
1402
class
Reply
:
1403
public
yarp::os::idl::WirePortable
1404
{
1405
public
:
1406
Reply
() =
default
;
1407
~Reply
()
override
=
default
;
1408
1409
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1410
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1411
1412
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1413
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1414
1415
bool
return_helper
{
false
};
1416
};
1417
1418
using
funcptr_t
= bool (*)(
const
std::string&);
1419
void
call
(
IMap2DMsgs
* ptr);
1420
1421
Command
cmd
;
1422
Reply
reply
;
1423
1424
static
constexpr
const
char
*
s_tag
{
"delete_area_RPC"
};
1425
static
constexpr
size_t
s_tag_len
{3};
1426
static
constexpr
size_t
s_cmd_len
{4};
1427
static
constexpr
size_t
s_reply_len
{1};
1428
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::delete_area_RPC(const std::string& area_name)"
};
1429
static
constexpr
const
char
*
s_help
{
""
};
1430
};
1431
1432
// clear_all_locations_RPC helper class declaration
1433
class
IMap2DMsgs_clear_all_locations_RPC_helper
:
1434
public
yarp::os::Portable
1435
{
1436
public
:
1437
IMap2DMsgs_clear_all_locations_RPC_helper
() =
default
;
1438
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1439
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1440
1441
class
Command
:
1442
public
yarp::os::idl::WirePortable
1443
{
1444
public
:
1445
Command
() =
default
;
1446
~Command
()
override
=
default
;
1447
1448
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1449
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1450
1451
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1452
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1453
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1454
1455
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1456
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1457
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1458
};
1459
1460
class
Reply
:
1461
public
yarp::os::idl::WirePortable
1462
{
1463
public
:
1464
Reply
() =
default
;
1465
~Reply
()
override
=
default
;
1466
1467
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1468
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1469
1470
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1471
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1472
1473
bool
return_helper
{
false
};
1474
};
1475
1476
using
funcptr_t
= bool (*)();
1477
void
call
(
IMap2DMsgs
* ptr);
1478
1479
Command
cmd
;
1480
Reply
reply
;
1481
1482
static
constexpr
const
char
*
s_tag
{
"clear_all_locations_RPC"
};
1483
static
constexpr
size_t
s_tag_len
{4};
1484
static
constexpr
size_t
s_cmd_len
{4};
1485
static
constexpr
size_t
s_reply_len
{1};
1486
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_all_locations_RPC()"
};
1487
static
constexpr
const
char
*
s_help
{
""
};
1488
};
1489
1490
// clear_all_areas_RPC helper class declaration
1491
class
IMap2DMsgs_clear_all_areas_RPC_helper
:
1492
public
yarp::os::Portable
1493
{
1494
public
:
1495
IMap2DMsgs_clear_all_areas_RPC_helper
() =
default
;
1496
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1497
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1498
1499
class
Command
:
1500
public
yarp::os::idl::WirePortable
1501
{
1502
public
:
1503
Command
() =
default
;
1504
~Command
()
override
=
default
;
1505
1506
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1507
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1508
1509
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1510
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1511
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1512
1513
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1514
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1515
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1516
};
1517
1518
class
Reply
:
1519
public
yarp::os::idl::WirePortable
1520
{
1521
public
:
1522
Reply
() =
default
;
1523
~Reply
()
override
=
default
;
1524
1525
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1526
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1527
1528
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1529
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1530
1531
bool
return_helper
{
false
};
1532
};
1533
1534
using
funcptr_t
= bool (*)();
1535
void
call
(
IMap2DMsgs
* ptr);
1536
1537
Command
cmd
;
1538
Reply
reply
;
1539
1540
static
constexpr
const
char
*
s_tag
{
"clear_all_areas_RPC"
};
1541
static
constexpr
size_t
s_tag_len
{4};
1542
static
constexpr
size_t
s_cmd_len
{4};
1543
static
constexpr
size_t
s_reply_len
{1};
1544
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_all_areas_RPC()"
};
1545
static
constexpr
const
char
*
s_help
{
""
};
1546
};
1547
1548
// clear_all_paths_RPC helper class declaration
1549
class
IMap2DMsgs_clear_all_paths_RPC_helper
:
1550
public
yarp::os::Portable
1551
{
1552
public
:
1553
IMap2DMsgs_clear_all_paths_RPC_helper
() =
default
;
1554
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1555
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1556
1557
class
Command
:
1558
public
yarp::os::idl::WirePortable
1559
{
1560
public
:
1561
Command
() =
default
;
1562
~Command
()
override
=
default
;
1563
1564
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1565
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1566
1567
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1568
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1569
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1570
1571
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1572
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1573
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1574
};
1575
1576
class
Reply
:
1577
public
yarp::os::idl::WirePortable
1578
{
1579
public
:
1580
Reply
() =
default
;
1581
~Reply
()
override
=
default
;
1582
1583
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1584
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1585
1586
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1587
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1588
1589
bool
return_helper
{
false
};
1590
};
1591
1592
using
funcptr_t
= bool (*)();
1593
void
call
(
IMap2DMsgs
* ptr);
1594
1595
Command
cmd
;
1596
Reply
reply
;
1597
1598
static
constexpr
const
char
*
s_tag
{
"clear_all_paths_RPC"
};
1599
static
constexpr
size_t
s_tag_len
{4};
1600
static
constexpr
size_t
s_cmd_len
{4};
1601
static
constexpr
size_t
s_reply_len
{1};
1602
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_all_paths_RPC()"
};
1603
static
constexpr
const
char
*
s_help
{
""
};
1604
};
1605
1606
// clear_all_maps_temporary_flags_RPC helper class declaration
1607
class
IMap2DMsgs_clear_all_maps_temporary_flags_RPC_helper
:
1608
public
yarp::os::Portable
1609
{
1610
public
:
1611
IMap2DMsgs_clear_all_maps_temporary_flags_RPC_helper
() =
default
;
1612
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1613
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1614
1615
class
Command
:
1616
public
yarp::os::idl::WirePortable
1617
{
1618
public
:
1619
Command
() =
default
;
1620
~Command
()
override
=
default
;
1621
1622
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1623
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1624
1625
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1626
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1627
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1628
1629
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1630
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1631
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1632
};
1633
1634
class
Reply
:
1635
public
yarp::os::idl::WirePortable
1636
{
1637
public
:
1638
Reply
() =
default
;
1639
~Reply
()
override
=
default
;
1640
1641
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1642
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1643
1644
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1645
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1646
1647
bool
return_helper
{
false
};
1648
};
1649
1650
using
funcptr_t
= bool (*)();
1651
void
call
(
IMap2DMsgs
* ptr);
1652
1653
Command
cmd
;
1654
Reply
reply
;
1655
1656
static
constexpr
const
char
*
s_tag
{
"clear_all_maps_temporary_flags_RPC"
};
1657
static
constexpr
size_t
s_tag_len
{6};
1658
static
constexpr
size_t
s_cmd_len
{6};
1659
static
constexpr
size_t
s_reply_len
{1};
1660
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_all_maps_temporary_flags_RPC()"
};
1661
static
constexpr
const
char
*
s_help
{
""
};
1662
};
1663
1664
// clear_map_temporary_flags_RPC helper class declaration
1665
class
IMap2DMsgs_clear_map_temporary_flags_RPC_helper
:
1666
public
yarp::os::Portable
1667
{
1668
public
:
1669
IMap2DMsgs_clear_map_temporary_flags_RPC_helper
() =
default
;
1670
explicit
IMap2DMsgs_clear_map_temporary_flags_RPC_helper
(
const
std::string& map_name);
1671
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1672
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1673
1674
class
Command
:
1675
public
yarp::os::idl::WirePortable
1676
{
1677
public
:
1678
Command
() =
default
;
1679
explicit
Command
(
const
std::string&
map_name
);
1680
1681
~Command
()
override
=
default
;
1682
1683
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1684
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1685
1686
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1687
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1688
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1689
1690
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1691
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1692
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1693
1694
std::string
map_name
{};
1695
};
1696
1697
class
Reply
:
1698
public
yarp::os::idl::WirePortable
1699
{
1700
public
:
1701
Reply
() =
default
;
1702
~Reply
()
override
=
default
;
1703
1704
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1705
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1706
1707
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1708
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1709
1710
bool
return_helper
{
false
};
1711
};
1712
1713
using
funcptr_t
= bool (*)(
const
std::string&);
1714
void
call
(
IMap2DMsgs
* ptr);
1715
1716
Command
cmd
;
1717
Reply
reply
;
1718
1719
static
constexpr
const
char
*
s_tag
{
"clear_map_temporary_flags_RPC"
};
1720
static
constexpr
size_t
s_tag_len
{5};
1721
static
constexpr
size_t
s_cmd_len
{6};
1722
static
constexpr
size_t
s_reply_len
{1};
1723
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::clear_map_temporary_flags_RPC(const std::string& map_name)"
};
1724
static
constexpr
const
char
*
s_help
{
""
};
1725
};
1726
1727
// save_maps_collection_RPC helper class declaration
1728
class
IMap2DMsgs_save_maps_collection_RPC_helper
:
1729
public
yarp::os::Portable
1730
{
1731
public
:
1732
IMap2DMsgs_save_maps_collection_RPC_helper
() =
default
;
1733
explicit
IMap2DMsgs_save_maps_collection_RPC_helper
(
const
std::string& maps_collection_file);
1734
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1735
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1736
1737
class
Command
:
1738
public
yarp::os::idl::WirePortable
1739
{
1740
public
:
1741
Command
() =
default
;
1742
explicit
Command
(
const
std::string&
maps_collection_file
);
1743
1744
~Command
()
override
=
default
;
1745
1746
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1747
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1748
1749
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1750
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1751
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1752
1753
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1754
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1755
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1756
1757
std::string
maps_collection_file
{};
1758
};
1759
1760
class
Reply
:
1761
public
yarp::os::idl::WirePortable
1762
{
1763
public
:
1764
Reply
() =
default
;
1765
~Reply
()
override
=
default
;
1766
1767
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1768
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1769
1770
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1771
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1772
1773
bool
return_helper
{
false
};
1774
};
1775
1776
using
funcptr_t
= bool (*)(
const
std::string&);
1777
void
call
(
IMap2DMsgs
* ptr);
1778
1779
Command
cmd
;
1780
Reply
reply
;
1781
1782
static
constexpr
const
char
*
s_tag
{
"save_maps_collection_RPC"
};
1783
static
constexpr
size_t
s_tag_len
{4};
1784
static
constexpr
size_t
s_cmd_len
{5};
1785
static
constexpr
size_t
s_reply_len
{1};
1786
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::save_maps_collection_RPC(const std::string& maps_collection_file)"
};
1787
static
constexpr
const
char
*
s_help
{
""
};
1788
};
1789
1790
// load_maps_collection_RPC helper class declaration
1791
class
IMap2DMsgs_load_maps_collection_RPC_helper
:
1792
public
yarp::os::Portable
1793
{
1794
public
:
1795
IMap2DMsgs_load_maps_collection_RPC_helper
() =
default
;
1796
explicit
IMap2DMsgs_load_maps_collection_RPC_helper
(
const
std::string& maps_collection_file);
1797
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1798
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1799
1800
class
Command
:
1801
public
yarp::os::idl::WirePortable
1802
{
1803
public
:
1804
Command
() =
default
;
1805
explicit
Command
(
const
std::string&
maps_collection_file
);
1806
1807
~Command
()
override
=
default
;
1808
1809
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1810
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1811
1812
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1813
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1814
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1815
1816
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1817
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1818
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1819
1820
std::string
maps_collection_file
{};
1821
};
1822
1823
class
Reply
:
1824
public
yarp::os::idl::WirePortable
1825
{
1826
public
:
1827
Reply
() =
default
;
1828
~Reply
()
override
=
default
;
1829
1830
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1831
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1832
1833
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1834
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1835
1836
bool
return_helper
{
false
};
1837
};
1838
1839
using
funcptr_t
= bool (*)(
const
std::string&);
1840
void
call
(
IMap2DMsgs
* ptr);
1841
1842
Command
cmd
;
1843
Reply
reply
;
1844
1845
static
constexpr
const
char
*
s_tag
{
"load_maps_collection_RPC"
};
1846
static
constexpr
size_t
s_tag_len
{4};
1847
static
constexpr
size_t
s_cmd_len
{5};
1848
static
constexpr
size_t
s_reply_len
{1};
1849
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::load_maps_collection_RPC(const std::string& maps_collection_file)"
};
1850
static
constexpr
const
char
*
s_help
{
""
};
1851
};
1852
1853
// save_locations_and_extras_RPC helper class declaration
1854
class
IMap2DMsgs_save_locations_and_extras_RPC_helper
:
1855
public
yarp::os::Portable
1856
{
1857
public
:
1858
IMap2DMsgs_save_locations_and_extras_RPC_helper
() =
default
;
1859
explicit
IMap2DMsgs_save_locations_and_extras_RPC_helper
(
const
std::string& locations_collection_file);
1860
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1861
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1862
1863
class
Command
:
1864
public
yarp::os::idl::WirePortable
1865
{
1866
public
:
1867
Command
() =
default
;
1868
explicit
Command
(
const
std::string&
locations_collection_file
);
1869
1870
~Command
()
override
=
default
;
1871
1872
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1873
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1874
1875
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1876
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1877
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1878
1879
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1880
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1881
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1882
1883
std::string
locations_collection_file
{};
1884
};
1885
1886
class
Reply
:
1887
public
yarp::os::idl::WirePortable
1888
{
1889
public
:
1890
Reply
() =
default
;
1891
~Reply
()
override
=
default
;
1892
1893
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1894
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1895
1896
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1897
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1898
1899
bool
return_helper
{
false
};
1900
};
1901
1902
using
funcptr_t
= bool (*)(
const
std::string&);
1903
void
call
(
IMap2DMsgs
* ptr);
1904
1905
Command
cmd
;
1906
Reply
reply
;
1907
1908
static
constexpr
const
char
*
s_tag
{
"save_locations_and_extras_RPC"
};
1909
static
constexpr
size_t
s_tag_len
{5};
1910
static
constexpr
size_t
s_cmd_len
{6};
1911
static
constexpr
size_t
s_reply_len
{1};
1912
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::save_locations_and_extras_RPC(const std::string& locations_collection_file)"
};
1913
static
constexpr
const
char
*
s_help
{
""
};
1914
};
1915
1916
// load_locations_and_extras_RPC helper class declaration
1917
class
IMap2DMsgs_load_locations_and_extras_RPC_helper
:
1918
public
yarp::os::Portable
1919
{
1920
public
:
1921
IMap2DMsgs_load_locations_and_extras_RPC_helper
() =
default
;
1922
explicit
IMap2DMsgs_load_locations_and_extras_RPC_helper
(
const
std::string& locations_collection_file);
1923
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1924
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1925
1926
class
Command
:
1927
public
yarp::os::idl::WirePortable
1928
{
1929
public
:
1930
Command
() =
default
;
1931
explicit
Command
(
const
std::string&
locations_collection_file
);
1932
1933
~Command
()
override
=
default
;
1934
1935
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1936
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1937
1938
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1939
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1940
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
1941
1942
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1943
bool
readTag
(
yarp::os::idl::WireReader
& reader);
1944
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
1945
1946
std::string
locations_collection_file
{};
1947
};
1948
1949
class
Reply
:
1950
public
yarp::os::idl::WirePortable
1951
{
1952
public
:
1953
Reply
() =
default
;
1954
~Reply
()
override
=
default
;
1955
1956
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1957
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1958
1959
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
1960
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
1961
1962
bool
return_helper
{
false
};
1963
};
1964
1965
using
funcptr_t
= bool (*)(
const
std::string&);
1966
void
call
(
IMap2DMsgs
* ptr);
1967
1968
Command
cmd
;
1969
Reply
reply
;
1970
1971
static
constexpr
const
char
*
s_tag
{
"load_locations_and_extras_RPC"
};
1972
static
constexpr
size_t
s_tag_len
{5};
1973
static
constexpr
size_t
s_cmd_len
{6};
1974
static
constexpr
size_t
s_reply_len
{1};
1975
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::load_locations_and_extras_RPC(const std::string& locations_collection_file)"
};
1976
static
constexpr
const
char
*
s_help
{
""
};
1977
};
1978
1979
// save_map_to_disk_RPC helper class declaration
1980
class
IMap2DMsgs_save_map_to_disk_RPC_helper
:
1981
public
yarp::os::Portable
1982
{
1983
public
:
1984
IMap2DMsgs_save_map_to_disk_RPC_helper
() =
default
;
1985
IMap2DMsgs_save_map_to_disk_RPC_helper
(
const
std::string& map_name,
const
std::string& file_name);
1986
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1987
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
1988
1989
class
Command
:
1990
public
yarp::os::idl::WirePortable
1991
{
1992
public
:
1993
Command
() =
default
;
1994
Command
(
const
std::string&
map_name
,
const
std::string&
file_name
);
1995
1996
~Command
()
override
=
default
;
1997
1998
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
1999
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2000
2001
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2002
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2003
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2004
2005
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2006
bool
readTag
(
yarp::os::idl::WireReader
& reader);
2007
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
2008
2009
std::string
map_name
{};
2010
std::string
file_name
{};
2011
};
2012
2013
class
Reply
:
2014
public
yarp::os::idl::WirePortable
2015
{
2016
public
:
2017
Reply
() =
default
;
2018
~Reply
()
override
=
default
;
2019
2020
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2021
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2022
2023
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2024
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2025
2026
bool
return_helper
{
false
};
2027
};
2028
2029
using
funcptr_t
= bool (*)(
const
std::string&,
const
std::string&);
2030
void
call
(
IMap2DMsgs
* ptr);
2031
2032
Command
cmd
;
2033
Reply
reply
;
2034
2035
static
constexpr
const
char
*
s_tag
{
"save_map_to_disk_RPC"
};
2036
static
constexpr
size_t
s_tag_len
{5};
2037
static
constexpr
size_t
s_cmd_len
{7};
2038
static
constexpr
size_t
s_reply_len
{1};
2039
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::save_map_to_disk_RPC(const std::string& map_name, const std::string& file_name)"
};
2040
static
constexpr
const
char
*
s_help
{
""
};
2041
};
2042
2043
// load_map_from_disk_RPC helper class declaration
2044
class
IMap2DMsgs_load_map_from_disk_RPC_helper
:
2045
public
yarp::os::Portable
2046
{
2047
public
:
2048
IMap2DMsgs_load_map_from_disk_RPC_helper
() =
default
;
2049
explicit
IMap2DMsgs_load_map_from_disk_RPC_helper
(
const
std::string& file_name);
2050
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2051
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2052
2053
class
Command
:
2054
public
yarp::os::idl::WirePortable
2055
{
2056
public
:
2057
Command
() =
default
;
2058
explicit
Command
(
const
std::string&
file_name
);
2059
2060
~Command
()
override
=
default
;
2061
2062
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2063
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2064
2065
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2066
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2067
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2068
2069
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2070
bool
readTag
(
yarp::os::idl::WireReader
& reader);
2071
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
2072
2073
std::string
file_name
{};
2074
};
2075
2076
class
Reply
:
2077
public
yarp::os::idl::WirePortable
2078
{
2079
public
:
2080
Reply
() =
default
;
2081
~Reply
()
override
=
default
;
2082
2083
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2084
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2085
2086
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2087
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2088
2089
bool
return_helper
{
false
};
2090
};
2091
2092
using
funcptr_t
= bool (*)(
const
std::string&);
2093
void
call
(
IMap2DMsgs
* ptr);
2094
2095
Command
cmd
;
2096
Reply
reply
;
2097
2098
static
constexpr
const
char
*
s_tag
{
"load_map_from_disk_RPC"
};
2099
static
constexpr
size_t
s_tag_len
{5};
2100
static
constexpr
size_t
s_cmd_len
{6};
2101
static
constexpr
size_t
s_reply_len
{1};
2102
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::load_map_from_disk_RPC(const std::string& file_name)"
};
2103
static
constexpr
const
char
*
s_help
{
""
};
2104
};
2105
2106
// enable_maps_compression_RPC helper class declaration
2107
class
IMap2DMsgs_enable_maps_compression_RPC_helper
:
2108
public
yarp::os::Portable
2109
{
2110
public
:
2111
IMap2DMsgs_enable_maps_compression_RPC_helper
() =
default
;
2112
explicit
IMap2DMsgs_enable_maps_compression_RPC_helper
(
const
bool
enable_compression);
2113
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2114
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2115
2116
class
Command
:
2117
public
yarp::os::idl::WirePortable
2118
{
2119
public
:
2120
Command
() =
default
;
2121
explicit
Command
(
const
bool
enable_compression
);
2122
2123
~Command
()
override
=
default
;
2124
2125
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2126
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2127
2128
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2129
bool
writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2130
bool
writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
;
2131
2132
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2133
bool
readTag
(
yarp::os::idl::WireReader
& reader);
2134
bool
readArgs
(
yarp::os::idl::WireReader
& reader);
2135
2136
bool
enable_compression
{
false
};
2137
};
2138
2139
class
Reply
:
2140
public
yarp::os::idl::WirePortable
2141
{
2142
public
:
2143
Reply
() =
default
;
2144
~Reply
()
override
=
default
;
2145
2146
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
2147
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
2148
2149
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
2150
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
2151
2152
bool
return_helper
{
false
};
2153
};
2154
2155
using
funcptr_t
= bool (*)(
const
bool);
2156
void
call
(
IMap2DMsgs
* ptr);
2157
2158
Command
cmd
;
2159
Reply
reply
;
2160
2161
static
constexpr
const
char
*
s_tag
{
"enable_maps_compression_RPC"
};
2162
static
constexpr
size_t
s_tag_len
{4};
2163
static
constexpr
size_t
s_cmd_len
{5};
2164
static
constexpr
size_t
s_reply_len
{1};
2165
static
constexpr
const
char
*
s_prototype
{
"bool IMap2DMsgs::enable_maps_compression_RPC(const bool enable_compression)"
};
2166
static
constexpr
const
char
*
s_help
{
""
};
2167
};
2168
2169
// clear_all_maps_RPC helper class implementation
2170
bool
IMap2DMsgs_clear_all_maps_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2171
{
2172
return
cmd
.
write
(connection);
2173
}
2174
2175
bool
IMap2DMsgs_clear_all_maps_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2176
{
2177
return
reply
.
read
(connection);
2178
}
2179
2180
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2181
{
2182
yarp::os::idl::WireWriter
writer(connection);
2183
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2184
return
false
;
2185
}
2186
return
write
(writer);
2187
}
2188
2189
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2190
{
2191
yarp::os::idl::WireReader
reader(connection);
2192
if
(!reader.
readListHeader
()) {
2193
reader.
fail
();
2194
return
false
;
2195
}
2196
return
read
(reader);
2197
}
2198
2199
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2200
{
2201
if
(!writeTag(writer)) {
2202
return
false
;
2203
}
2204
if
(!writeArgs(writer)) {
2205
return
false
;
2206
}
2207
return
true
;
2208
}
2209
2210
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2211
{
2212
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2213
return
false
;
2214
}
2215
return
true
;
2216
}
2217
2218
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer [[maybe_unused]])
const
2219
{
2220
return
true
;
2221
}
2222
2223
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2224
{
2225
if
(!readTag(reader)) {
2226
return
false
;
2227
}
2228
if
(!readArgs(reader)) {
2229
return
false
;
2230
}
2231
return
true
;
2232
}
2233
2234
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2235
{
2236
std::string tag = reader.
readTag
(
s_tag_len
);
2237
if
(reader.
isError
()) {
2238
return
false
;
2239
}
2240
if
(tag !=
s_tag
) {
2241
reader.
fail
();
2242
return
false
;
2243
}
2244
return
true
;
2245
}
2246
2247
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2248
{
2249
if
(!reader.
noMore
()) {
2250
reader.
fail
();
2251
return
false
;
2252
}
2253
return
true
;
2254
}
2255
2256
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
2257
{
2258
yarp::os::idl::WireWriter
writer(connection);
2259
return
write
(writer);
2260
}
2261
2262
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
2263
{
2264
yarp::os::idl::WireReader
reader(connection);
2265
return
read
(reader);
2266
}
2267
2268
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2269
{
2270
if
(!writer.
isNull
()) {
2271
if
(!writer.
writeListHeader
(
s_reply_len
)) {
2272
return
false
;
2273
}
2274
if
(!writer.
writeBool
(return_helper)) {
2275
return
false
;
2276
}
2277
}
2278
return
true
;
2279
}
2280
2281
bool
IMap2DMsgs_clear_all_maps_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
2282
{
2283
if
(!reader.
readListReturn
()) {
2284
return
false
;
2285
}
2286
if
(reader.
noMore
()) {
2287
reader.
fail
();
2288
return
false
;
2289
}
2290
if
(!reader.
readBool
(return_helper)) {
2291
reader.
fail
();
2292
return
false
;
2293
}
2294
return
true
;
2295
}
2296
2297
void
IMap2DMsgs_clear_all_maps_RPC_helper::call
(
IMap2DMsgs
* ptr)
2298
{
2299
reply
.
return_helper
= ptr->
clear_all_maps_RPC
();
2300
}
2301
2302
// store_map_RPC helper class implementation
2303
IMap2DMsgs_store_map_RPC_helper::IMap2DMsgs_store_map_RPC_helper
(
const
yarp::dev::Nav2D::MapGrid2D
& themap) :
2304
cmd
{themap}
2305
{
2306
}
2307
2308
bool
IMap2DMsgs_store_map_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2309
{
2310
return
cmd
.
write
(connection);
2311
}
2312
2313
bool
IMap2DMsgs_store_map_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2314
{
2315
return
reply
.
read
(connection);
2316
}
2317
2318
IMap2DMsgs_store_map_RPC_helper::Command::Command
(
const
yarp::dev::Nav2D::MapGrid2D
& themap) :
2319
themap{themap}
2320
{
2321
}
2322
2323
bool
IMap2DMsgs_store_map_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2324
{
2325
yarp::os::idl::WireWriter
writer(connection);
2326
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2327
return
false
;
2328
}
2329
return
write
(writer);
2330
}
2331
2332
bool
IMap2DMsgs_store_map_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2333
{
2334
yarp::os::idl::WireReader
reader(connection);
2335
if
(!reader.
readListHeader
()) {
2336
reader.
fail
();
2337
return
false
;
2338
}
2339
return
read
(reader);
2340
}
2341
2342
bool
IMap2DMsgs_store_map_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2343
{
2344
if
(!writeTag(writer)) {
2345
return
false
;
2346
}
2347
if
(!writeArgs(writer)) {
2348
return
false
;
2349
}
2350
return
true
;
2351
}
2352
2353
bool
IMap2DMsgs_store_map_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2354
{
2355
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2356
return
false
;
2357
}
2358
return
true
;
2359
}
2360
2361
bool
IMap2DMsgs_store_map_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
2362
{
2363
if
(!writer.
writeNested
(themap)) {
2364
return
false
;
2365
}
2366
return
true
;
2367
}
2368
2369
bool
IMap2DMsgs_store_map_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2370
{
2371
if
(!readTag(reader)) {
2372
return
false
;
2373
}
2374
if
(!readArgs(reader)) {
2375
return
false
;
2376
}
2377
return
true
;
2378
}
2379
2380
bool
IMap2DMsgs_store_map_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2381
{
2382
std::string tag = reader.
readTag
(
s_tag_len
);
2383
if
(reader.
isError
()) {
2384
return
false
;
2385
}
2386
if
(tag !=
s_tag
) {
2387
reader.
fail
();
2388
return
false
;
2389
}
2390
return
true
;
2391
}
2392
2393
bool
IMap2DMsgs_store_map_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2394
{
2395
if
(reader.
noMore
()) {
2396
reader.
fail
();
2397
return
false
;
2398
}
2399
if
(!reader.
readNested
(themap)) {
2400
reader.
fail
();
2401
return
false
;
2402
}
2403
if
(!reader.
noMore
()) {
2404
reader.
fail
();
2405
return
false
;
2406
}
2407
return
true
;
2408
}
2409
2410
bool
IMap2DMsgs_store_map_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
2411
{
2412
yarp::os::idl::WireWriter
writer(connection);
2413
return
write
(writer);
2414
}
2415
2416
bool
IMap2DMsgs_store_map_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
2417
{
2418
yarp::os::idl::WireReader
reader(connection);
2419
return
read
(reader);
2420
}
2421
2422
bool
IMap2DMsgs_store_map_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2423
{
2424
if
(!writer.
isNull
()) {
2425
if
(!writer.
writeListHeader
(
s_reply_len
)) {
2426
return
false
;
2427
}
2428
if
(!writer.
writeBool
(return_helper)) {
2429
return
false
;
2430
}
2431
}
2432
return
true
;
2433
}
2434
2435
bool
IMap2DMsgs_store_map_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
2436
{
2437
if
(!reader.
readListReturn
()) {
2438
return
false
;
2439
}
2440
if
(reader.
noMore
()) {
2441
reader.
fail
();
2442
return
false
;
2443
}
2444
if
(!reader.
readBool
(return_helper)) {
2445
reader.
fail
();
2446
return
false
;
2447
}
2448
return
true
;
2449
}
2450
2451
void
IMap2DMsgs_store_map_RPC_helper::call
(
IMap2DMsgs
* ptr)
2452
{
2453
reply
.
return_helper
= ptr->
store_map_RPC
(
cmd
.
themap
);
2454
}
2455
2456
// get_map_RPC helper class implementation
2457
IMap2DMsgs_get_map_RPC_helper::IMap2DMsgs_get_map_RPC_helper
(
const
std::string& map_name) :
2458
cmd
{map_name}
2459
{
2460
}
2461
2462
bool
IMap2DMsgs_get_map_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2463
{
2464
return
cmd
.
write
(connection);
2465
}
2466
2467
bool
IMap2DMsgs_get_map_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2468
{
2469
return
reply
.
read
(connection);
2470
}
2471
2472
IMap2DMsgs_get_map_RPC_helper::Command::Command
(
const
std::string& map_name) :
2473
map_name{map_name}
2474
{
2475
}
2476
2477
bool
IMap2DMsgs_get_map_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2478
{
2479
yarp::os::idl::WireWriter
writer(connection);
2480
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2481
return
false
;
2482
}
2483
return
write
(writer);
2484
}
2485
2486
bool
IMap2DMsgs_get_map_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2487
{
2488
yarp::os::idl::WireReader
reader(connection);
2489
if
(!reader.
readListHeader
()) {
2490
reader.
fail
();
2491
return
false
;
2492
}
2493
return
read
(reader);
2494
}
2495
2496
bool
IMap2DMsgs_get_map_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2497
{
2498
if
(!writeTag(writer)) {
2499
return
false
;
2500
}
2501
if
(!writeArgs(writer)) {
2502
return
false
;
2503
}
2504
return
true
;
2505
}
2506
2507
bool
IMap2DMsgs_get_map_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2508
{
2509
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2510
return
false
;
2511
}
2512
return
true
;
2513
}
2514
2515
bool
IMap2DMsgs_get_map_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
2516
{
2517
if
(!writer.
writeString
(map_name)) {
2518
return
false
;
2519
}
2520
return
true
;
2521
}
2522
2523
bool
IMap2DMsgs_get_map_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2524
{
2525
if
(!readTag(reader)) {
2526
return
false
;
2527
}
2528
if
(!readArgs(reader)) {
2529
return
false
;
2530
}
2531
return
true
;
2532
}
2533
2534
bool
IMap2DMsgs_get_map_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2535
{
2536
std::string tag = reader.
readTag
(
s_tag_len
);
2537
if
(reader.
isError
()) {
2538
return
false
;
2539
}
2540
if
(tag !=
s_tag
) {
2541
reader.
fail
();
2542
return
false
;
2543
}
2544
return
true
;
2545
}
2546
2547
bool
IMap2DMsgs_get_map_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2548
{
2549
if
(reader.
noMore
()) {
2550
reader.
fail
();
2551
return
false
;
2552
}
2553
if
(!reader.
readString
(map_name)) {
2554
reader.
fail
();
2555
return
false
;
2556
}
2557
if
(!reader.
noMore
()) {
2558
reader.
fail
();
2559
return
false
;
2560
}
2561
return
true
;
2562
}
2563
2564
bool
IMap2DMsgs_get_map_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
2565
{
2566
yarp::os::idl::WireWriter
writer(connection);
2567
return
write
(writer);
2568
}
2569
2570
bool
IMap2DMsgs_get_map_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
2571
{
2572
yarp::os::idl::WireReader
reader(connection);
2573
return
read
(reader);
2574
}
2575
2576
bool
IMap2DMsgs_get_map_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2577
{
2578
if
(!writer.
isNull
()) {
2579
if
(!writer.
writeListHeader
(
s_reply_len
)) {
2580
return
false
;
2581
}
2582
if
(!writer.
write
(return_helper)) {
2583
return
false
;
2584
}
2585
}
2586
return
true
;
2587
}
2588
2589
bool
IMap2DMsgs_get_map_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
2590
{
2591
if
(!reader.
readListReturn
()) {
2592
return
false
;
2593
}
2594
if
(reader.
noMore
()) {
2595
reader.
fail
();
2596
return
false
;
2597
}
2598
if
(!reader.
read
(return_helper)) {
2599
reader.
fail
();
2600
return
false
;
2601
}
2602
return
true
;
2603
}
2604
2605
void
IMap2DMsgs_get_map_RPC_helper::call
(
IMap2DMsgs
* ptr)
2606
{
2607
reply
.
return_helper
= ptr->
get_map_RPC
(
cmd
.
map_name
);
2608
}
2609
2610
// get_map_names_RPC helper class implementation
2611
bool
IMap2DMsgs_get_map_names_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2612
{
2613
return
cmd
.
write
(connection);
2614
}
2615
2616
bool
IMap2DMsgs_get_map_names_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2617
{
2618
return
reply
.
read
(connection);
2619
}
2620
2621
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2622
{
2623
yarp::os::idl::WireWriter
writer(connection);
2624
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2625
return
false
;
2626
}
2627
return
write
(writer);
2628
}
2629
2630
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2631
{
2632
yarp::os::idl::WireReader
reader(connection);
2633
if
(!reader.
readListHeader
()) {
2634
reader.
fail
();
2635
return
false
;
2636
}
2637
return
read
(reader);
2638
}
2639
2640
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2641
{
2642
if
(!writeTag(writer)) {
2643
return
false
;
2644
}
2645
if
(!writeArgs(writer)) {
2646
return
false
;
2647
}
2648
return
true
;
2649
}
2650
2651
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2652
{
2653
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2654
return
false
;
2655
}
2656
return
true
;
2657
}
2658
2659
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer [[maybe_unused]])
const
2660
{
2661
return
true
;
2662
}
2663
2664
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2665
{
2666
if
(!readTag(reader)) {
2667
return
false
;
2668
}
2669
if
(!readArgs(reader)) {
2670
return
false
;
2671
}
2672
return
true
;
2673
}
2674
2675
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2676
{
2677
std::string tag = reader.
readTag
(
s_tag_len
);
2678
if
(reader.
isError
()) {
2679
return
false
;
2680
}
2681
if
(tag !=
s_tag
) {
2682
reader.
fail
();
2683
return
false
;
2684
}
2685
return
true
;
2686
}
2687
2688
bool
IMap2DMsgs_get_map_names_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2689
{
2690
if
(!reader.
noMore
()) {
2691
reader.
fail
();
2692
return
false
;
2693
}
2694
return
true
;
2695
}
2696
2697
bool
IMap2DMsgs_get_map_names_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
2698
{
2699
yarp::os::idl::WireWriter
writer(connection);
2700
return
write
(writer);
2701
}
2702
2703
bool
IMap2DMsgs_get_map_names_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
2704
{
2705
yarp::os::idl::WireReader
reader(connection);
2706
return
read
(reader);
2707
}
2708
2709
bool
IMap2DMsgs_get_map_names_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2710
{
2711
if
(!writer.
isNull
()) {
2712
if
(!writer.
writeListHeader
(
s_reply_len
)) {
2713
return
false
;
2714
}
2715
if
(!writer.
write
(return_helper)) {
2716
return
false
;
2717
}
2718
}
2719
return
true
;
2720
}
2721
2722
bool
IMap2DMsgs_get_map_names_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
2723
{
2724
if
(!reader.
readListReturn
()) {
2725
return
false
;
2726
}
2727
if
(reader.
noMore
()) {
2728
reader.
fail
();
2729
return
false
;
2730
}
2731
if
(!reader.
read
(return_helper)) {
2732
reader.
fail
();
2733
return
false
;
2734
}
2735
return
true
;
2736
}
2737
2738
void
IMap2DMsgs_get_map_names_RPC_helper::call
(
IMap2DMsgs
* ptr)
2739
{
2740
reply
.
return_helper
= ptr->
get_map_names_RPC
();
2741
}
2742
2743
// remove_map_RPC helper class implementation
2744
IMap2DMsgs_remove_map_RPC_helper::IMap2DMsgs_remove_map_RPC_helper
(
const
std::string& map_name) :
2745
cmd
{map_name}
2746
{
2747
}
2748
2749
bool
IMap2DMsgs_remove_map_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2750
{
2751
return
cmd
.
write
(connection);
2752
}
2753
2754
bool
IMap2DMsgs_remove_map_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2755
{
2756
return
reply
.
read
(connection);
2757
}
2758
2759
IMap2DMsgs_remove_map_RPC_helper::Command::Command
(
const
std::string& map_name) :
2760
map_name{map_name}
2761
{
2762
}
2763
2764
bool
IMap2DMsgs_remove_map_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2765
{
2766
yarp::os::idl::WireWriter
writer(connection);
2767
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2768
return
false
;
2769
}
2770
return
write
(writer);
2771
}
2772
2773
bool
IMap2DMsgs_remove_map_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2774
{
2775
yarp::os::idl::WireReader
reader(connection);
2776
if
(!reader.
readListHeader
()) {
2777
reader.
fail
();
2778
return
false
;
2779
}
2780
return
read
(reader);
2781
}
2782
2783
bool
IMap2DMsgs_remove_map_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2784
{
2785
if
(!writeTag(writer)) {
2786
return
false
;
2787
}
2788
if
(!writeArgs(writer)) {
2789
return
false
;
2790
}
2791
return
true
;
2792
}
2793
2794
bool
IMap2DMsgs_remove_map_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2795
{
2796
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2797
return
false
;
2798
}
2799
return
true
;
2800
}
2801
2802
bool
IMap2DMsgs_remove_map_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
2803
{
2804
if
(!writer.
writeString
(map_name)) {
2805
return
false
;
2806
}
2807
return
true
;
2808
}
2809
2810
bool
IMap2DMsgs_remove_map_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2811
{
2812
if
(!readTag(reader)) {
2813
return
false
;
2814
}
2815
if
(!readArgs(reader)) {
2816
return
false
;
2817
}
2818
return
true
;
2819
}
2820
2821
bool
IMap2DMsgs_remove_map_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2822
{
2823
std::string tag = reader.
readTag
(
s_tag_len
);
2824
if
(reader.
isError
()) {
2825
return
false
;
2826
}
2827
if
(tag !=
s_tag
) {
2828
reader.
fail
();
2829
return
false
;
2830
}
2831
return
true
;
2832
}
2833
2834
bool
IMap2DMsgs_remove_map_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2835
{
2836
if
(reader.
noMore
()) {
2837
reader.
fail
();
2838
return
false
;
2839
}
2840
if
(!reader.
readString
(map_name)) {
2841
reader.
fail
();
2842
return
false
;
2843
}
2844
if
(!reader.
noMore
()) {
2845
reader.
fail
();
2846
return
false
;
2847
}
2848
return
true
;
2849
}
2850
2851
bool
IMap2DMsgs_remove_map_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
2852
{
2853
yarp::os::idl::WireWriter
writer(connection);
2854
return
write
(writer);
2855
}
2856
2857
bool
IMap2DMsgs_remove_map_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
2858
{
2859
yarp::os::idl::WireReader
reader(connection);
2860
return
read
(reader);
2861
}
2862
2863
bool
IMap2DMsgs_remove_map_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2864
{
2865
if
(!writer.
isNull
()) {
2866
if
(!writer.
writeListHeader
(
s_reply_len
)) {
2867
return
false
;
2868
}
2869
if
(!writer.
writeBool
(return_helper)) {
2870
return
false
;
2871
}
2872
}
2873
return
true
;
2874
}
2875
2876
bool
IMap2DMsgs_remove_map_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
2877
{
2878
if
(!reader.
readListReturn
()) {
2879
return
false
;
2880
}
2881
if
(reader.
noMore
()) {
2882
reader.
fail
();
2883
return
false
;
2884
}
2885
if
(!reader.
readBool
(return_helper)) {
2886
reader.
fail
();
2887
return
false
;
2888
}
2889
return
true
;
2890
}
2891
2892
void
IMap2DMsgs_remove_map_RPC_helper::call
(
IMap2DMsgs
* ptr)
2893
{
2894
reply
.
return_helper
= ptr->
remove_map_RPC
(
cmd
.
map_name
);
2895
}
2896
2897
// store_location_RPC helper class implementation
2898
IMap2DMsgs_store_location_RPC_helper::IMap2DMsgs_store_location_RPC_helper
(
const
std::string& location_name,
const
yarp::dev::Nav2D::Map2DLocation
& loc) :
2899
cmd
{location_name, loc}
2900
{
2901
}
2902
2903
bool
IMap2DMsgs_store_location_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
2904
{
2905
return
cmd
.
write
(connection);
2906
}
2907
2908
bool
IMap2DMsgs_store_location_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
2909
{
2910
return
reply
.
read
(connection);
2911
}
2912
2913
IMap2DMsgs_store_location_RPC_helper::Command::Command
(
const
std::string& location_name,
const
yarp::dev::Nav2D::Map2DLocation
& loc) :
2914
location_name{location_name},
2915
loc{loc}
2916
{
2917
}
2918
2919
bool
IMap2DMsgs_store_location_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
2920
{
2921
yarp::os::idl::WireWriter
writer(connection);
2922
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
2923
return
false
;
2924
}
2925
return
write
(writer);
2926
}
2927
2928
bool
IMap2DMsgs_store_location_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
2929
{
2930
yarp::os::idl::WireReader
reader(connection);
2931
if
(!reader.
readListHeader
()) {
2932
reader.
fail
();
2933
return
false
;
2934
}
2935
return
read
(reader);
2936
}
2937
2938
bool
IMap2DMsgs_store_location_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
2939
{
2940
if
(!writeTag(writer)) {
2941
return
false
;
2942
}
2943
if
(!writeArgs(writer)) {
2944
return
false
;
2945
}
2946
return
true
;
2947
}
2948
2949
bool
IMap2DMsgs_store_location_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
2950
{
2951
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
2952
return
false
;
2953
}
2954
return
true
;
2955
}
2956
2957
bool
IMap2DMsgs_store_location_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
2958
{
2959
if
(!writer.
writeString
(location_name)) {
2960
return
false
;
2961
}
2962
if
(!writer.
writeNested
(loc)) {
2963
return
false
;
2964
}
2965
return
true
;
2966
}
2967
2968
bool
IMap2DMsgs_store_location_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
2969
{
2970
if
(!readTag(reader)) {
2971
return
false
;
2972
}
2973
if
(!readArgs(reader)) {
2974
return
false
;
2975
}
2976
return
true
;
2977
}
2978
2979
bool
IMap2DMsgs_store_location_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
2980
{
2981
std::string tag = reader.
readTag
(
s_tag_len
);
2982
if
(reader.
isError
()) {
2983
return
false
;
2984
}
2985
if
(tag !=
s_tag
) {
2986
reader.
fail
();
2987
return
false
;
2988
}
2989
return
true
;
2990
}
2991
2992
bool
IMap2DMsgs_store_location_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
2993
{
2994
if
(reader.
noMore
()) {
2995
reader.
fail
();
2996
return
false
;
2997
}
2998
if
(!reader.
readString
(location_name)) {
2999
reader.
fail
();
3000
return
false
;
3001
}
3002
if
(reader.
noMore
()) {
3003
reader.
fail
();
3004
return
false
;
3005
}
3006
if
(!reader.
readNested
(loc)) {
3007
reader.
fail
();
3008
return
false
;
3009
}
3010
if
(!reader.
noMore
()) {
3011
reader.
fail
();
3012
return
false
;
3013
}
3014
return
true
;
3015
}
3016
3017
bool
IMap2DMsgs_store_location_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3018
{
3019
yarp::os::idl::WireWriter
writer(connection);
3020
return
write
(writer);
3021
}
3022
3023
bool
IMap2DMsgs_store_location_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3024
{
3025
yarp::os::idl::WireReader
reader(connection);
3026
return
read
(reader);
3027
}
3028
3029
bool
IMap2DMsgs_store_location_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3030
{
3031
if
(!writer.
isNull
()) {
3032
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3033
return
false
;
3034
}
3035
if
(!writer.
writeBool
(return_helper)) {
3036
return
false
;
3037
}
3038
}
3039
return
true
;
3040
}
3041
3042
bool
IMap2DMsgs_store_location_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3043
{
3044
if
(!reader.
readListReturn
()) {
3045
return
false
;
3046
}
3047
if
(reader.
noMore
()) {
3048
reader.
fail
();
3049
return
false
;
3050
}
3051
if
(!reader.
readBool
(return_helper)) {
3052
reader.
fail
();
3053
return
false
;
3054
}
3055
return
true
;
3056
}
3057
3058
void
IMap2DMsgs_store_location_RPC_helper::call
(
IMap2DMsgs
* ptr)
3059
{
3060
reply
.
return_helper
= ptr->
store_location_RPC
(
cmd
.
location_name
,
cmd
.
loc
);
3061
}
3062
3063
// store_area_RPC helper class implementation
3064
IMap2DMsgs_store_area_RPC_helper::IMap2DMsgs_store_area_RPC_helper
(
const
std::string& area_name,
const
yarp::dev::Nav2D::Map2DArea
& area) :
3065
cmd
{area_name, area}
3066
{
3067
}
3068
3069
bool
IMap2DMsgs_store_area_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3070
{
3071
return
cmd
.
write
(connection);
3072
}
3073
3074
bool
IMap2DMsgs_store_area_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3075
{
3076
return
reply
.
read
(connection);
3077
}
3078
3079
IMap2DMsgs_store_area_RPC_helper::Command::Command
(
const
std::string& area_name,
const
yarp::dev::Nav2D::Map2DArea
& area) :
3080
area_name{area_name},
3081
area{area}
3082
{
3083
}
3084
3085
bool
IMap2DMsgs_store_area_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3086
{
3087
yarp::os::idl::WireWriter
writer(connection);
3088
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3089
return
false
;
3090
}
3091
return
write
(writer);
3092
}
3093
3094
bool
IMap2DMsgs_store_area_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3095
{
3096
yarp::os::idl::WireReader
reader(connection);
3097
if
(!reader.
readListHeader
()) {
3098
reader.
fail
();
3099
return
false
;
3100
}
3101
return
read
(reader);
3102
}
3103
3104
bool
IMap2DMsgs_store_area_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3105
{
3106
if
(!writeTag(writer)) {
3107
return
false
;
3108
}
3109
if
(!writeArgs(writer)) {
3110
return
false
;
3111
}
3112
return
true
;
3113
}
3114
3115
bool
IMap2DMsgs_store_area_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3116
{
3117
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3118
return
false
;
3119
}
3120
return
true
;
3121
}
3122
3123
bool
IMap2DMsgs_store_area_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
3124
{
3125
if
(!writer.
writeString
(area_name)) {
3126
return
false
;
3127
}
3128
if
(!writer.
writeNested
(area)) {
3129
return
false
;
3130
}
3131
return
true
;
3132
}
3133
3134
bool
IMap2DMsgs_store_area_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3135
{
3136
if
(!readTag(reader)) {
3137
return
false
;
3138
}
3139
if
(!readArgs(reader)) {
3140
return
false
;
3141
}
3142
return
true
;
3143
}
3144
3145
bool
IMap2DMsgs_store_area_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3146
{
3147
std::string tag = reader.
readTag
(
s_tag_len
);
3148
if
(reader.
isError
()) {
3149
return
false
;
3150
}
3151
if
(tag !=
s_tag
) {
3152
reader.
fail
();
3153
return
false
;
3154
}
3155
return
true
;
3156
}
3157
3158
bool
IMap2DMsgs_store_area_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3159
{
3160
if
(reader.
noMore
()) {
3161
reader.
fail
();
3162
return
false
;
3163
}
3164
if
(!reader.
readString
(area_name)) {
3165
reader.
fail
();
3166
return
false
;
3167
}
3168
if
(reader.
noMore
()) {
3169
reader.
fail
();
3170
return
false
;
3171
}
3172
if
(!reader.
readNested
(area)) {
3173
reader.
fail
();
3174
return
false
;
3175
}
3176
if
(!reader.
noMore
()) {
3177
reader.
fail
();
3178
return
false
;
3179
}
3180
return
true
;
3181
}
3182
3183
bool
IMap2DMsgs_store_area_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3184
{
3185
yarp::os::idl::WireWriter
writer(connection);
3186
return
write
(writer);
3187
}
3188
3189
bool
IMap2DMsgs_store_area_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3190
{
3191
yarp::os::idl::WireReader
reader(connection);
3192
return
read
(reader);
3193
}
3194
3195
bool
IMap2DMsgs_store_area_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3196
{
3197
if
(!writer.
isNull
()) {
3198
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3199
return
false
;
3200
}
3201
if
(!writer.
writeBool
(return_helper)) {
3202
return
false
;
3203
}
3204
}
3205
return
true
;
3206
}
3207
3208
bool
IMap2DMsgs_store_area_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3209
{
3210
if
(!reader.
readListReturn
()) {
3211
return
false
;
3212
}
3213
if
(reader.
noMore
()) {
3214
reader.
fail
();
3215
return
false
;
3216
}
3217
if
(!reader.
readBool
(return_helper)) {
3218
reader.
fail
();
3219
return
false
;
3220
}
3221
return
true
;
3222
}
3223
3224
void
IMap2DMsgs_store_area_RPC_helper::call
(
IMap2DMsgs
* ptr)
3225
{
3226
reply
.
return_helper
= ptr->
store_area_RPC
(
cmd
.
area_name
,
cmd
.
area
);
3227
}
3228
3229
// store_path_RPC helper class implementation
3230
IMap2DMsgs_store_path_RPC_helper::IMap2DMsgs_store_path_RPC_helper
(
const
std::string& path_name,
const
yarp::dev::Nav2D::Map2DPath
& path) :
3231
cmd
{path_name, path}
3232
{
3233
}
3234
3235
bool
IMap2DMsgs_store_path_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3236
{
3237
return
cmd
.
write
(connection);
3238
}
3239
3240
bool
IMap2DMsgs_store_path_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3241
{
3242
return
reply
.
read
(connection);
3243
}
3244
3245
IMap2DMsgs_store_path_RPC_helper::Command::Command
(
const
std::string& path_name,
const
yarp::dev::Nav2D::Map2DPath
& path) :
3246
path_name{path_name},
3247
path{path}
3248
{
3249
}
3250
3251
bool
IMap2DMsgs_store_path_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3252
{
3253
yarp::os::idl::WireWriter
writer(connection);
3254
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3255
return
false
;
3256
}
3257
return
write
(writer);
3258
}
3259
3260
bool
IMap2DMsgs_store_path_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3261
{
3262
yarp::os::idl::WireReader
reader(connection);
3263
if
(!reader.
readListHeader
()) {
3264
reader.
fail
();
3265
return
false
;
3266
}
3267
return
read
(reader);
3268
}
3269
3270
bool
IMap2DMsgs_store_path_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3271
{
3272
if
(!writeTag(writer)) {
3273
return
false
;
3274
}
3275
if
(!writeArgs(writer)) {
3276
return
false
;
3277
}
3278
return
true
;
3279
}
3280
3281
bool
IMap2DMsgs_store_path_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3282
{
3283
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3284
return
false
;
3285
}
3286
return
true
;
3287
}
3288
3289
bool
IMap2DMsgs_store_path_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
3290
{
3291
if
(!writer.
writeString
(path_name)) {
3292
return
false
;
3293
}
3294
if
(!writer.
writeNested
(path)) {
3295
return
false
;
3296
}
3297
return
true
;
3298
}
3299
3300
bool
IMap2DMsgs_store_path_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3301
{
3302
if
(!readTag(reader)) {
3303
return
false
;
3304
}
3305
if
(!readArgs(reader)) {
3306
return
false
;
3307
}
3308
return
true
;
3309
}
3310
3311
bool
IMap2DMsgs_store_path_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3312
{
3313
std::string tag = reader.
readTag
(
s_tag_len
);
3314
if
(reader.
isError
()) {
3315
return
false
;
3316
}
3317
if
(tag !=
s_tag
) {
3318
reader.
fail
();
3319
return
false
;
3320
}
3321
return
true
;
3322
}
3323
3324
bool
IMap2DMsgs_store_path_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3325
{
3326
if
(reader.
noMore
()) {
3327
reader.
fail
();
3328
return
false
;
3329
}
3330
if
(!reader.
readString
(path_name)) {
3331
reader.
fail
();
3332
return
false
;
3333
}
3334
if
(reader.
noMore
()) {
3335
reader.
fail
();
3336
return
false
;
3337
}
3338
if
(!reader.
readNested
(path)) {
3339
reader.
fail
();
3340
return
false
;
3341
}
3342
if
(!reader.
noMore
()) {
3343
reader.
fail
();
3344
return
false
;
3345
}
3346
return
true
;
3347
}
3348
3349
bool
IMap2DMsgs_store_path_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3350
{
3351
yarp::os::idl::WireWriter
writer(connection);
3352
return
write
(writer);
3353
}
3354
3355
bool
IMap2DMsgs_store_path_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3356
{
3357
yarp::os::idl::WireReader
reader(connection);
3358
return
read
(reader);
3359
}
3360
3361
bool
IMap2DMsgs_store_path_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3362
{
3363
if
(!writer.
isNull
()) {
3364
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3365
return
false
;
3366
}
3367
if
(!writer.
writeBool
(return_helper)) {
3368
return
false
;
3369
}
3370
}
3371
return
true
;
3372
}
3373
3374
bool
IMap2DMsgs_store_path_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3375
{
3376
if
(!reader.
readListReturn
()) {
3377
return
false
;
3378
}
3379
if
(reader.
noMore
()) {
3380
reader.
fail
();
3381
return
false
;
3382
}
3383
if
(!reader.
readBool
(return_helper)) {
3384
reader.
fail
();
3385
return
false
;
3386
}
3387
return
true
;
3388
}
3389
3390
void
IMap2DMsgs_store_path_RPC_helper::call
(
IMap2DMsgs
* ptr)
3391
{
3392
reply
.
return_helper
= ptr->
store_path_RPC
(
cmd
.
path_name
,
cmd
.
path
);
3393
}
3394
3395
// get_location_RPC helper class implementation
3396
IMap2DMsgs_get_location_RPC_helper::IMap2DMsgs_get_location_RPC_helper
(
const
std::string& location_name) :
3397
cmd
{location_name}
3398
{
3399
}
3400
3401
bool
IMap2DMsgs_get_location_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3402
{
3403
return
cmd
.
write
(connection);
3404
}
3405
3406
bool
IMap2DMsgs_get_location_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3407
{
3408
return
reply
.
read
(connection);
3409
}
3410
3411
IMap2DMsgs_get_location_RPC_helper::Command::Command
(
const
std::string& location_name) :
3412
location_name{location_name}
3413
{
3414
}
3415
3416
bool
IMap2DMsgs_get_location_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3417
{
3418
yarp::os::idl::WireWriter
writer(connection);
3419
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3420
return
false
;
3421
}
3422
return
write
(writer);
3423
}
3424
3425
bool
IMap2DMsgs_get_location_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3426
{
3427
yarp::os::idl::WireReader
reader(connection);
3428
if
(!reader.
readListHeader
()) {
3429
reader.
fail
();
3430
return
false
;
3431
}
3432
return
read
(reader);
3433
}
3434
3435
bool
IMap2DMsgs_get_location_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3436
{
3437
if
(!writeTag(writer)) {
3438
return
false
;
3439
}
3440
if
(!writeArgs(writer)) {
3441
return
false
;
3442
}
3443
return
true
;
3444
}
3445
3446
bool
IMap2DMsgs_get_location_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3447
{
3448
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3449
return
false
;
3450
}
3451
return
true
;
3452
}
3453
3454
bool
IMap2DMsgs_get_location_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
3455
{
3456
if
(!writer.
writeString
(location_name)) {
3457
return
false
;
3458
}
3459
return
true
;
3460
}
3461
3462
bool
IMap2DMsgs_get_location_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3463
{
3464
if
(!readTag(reader)) {
3465
return
false
;
3466
}
3467
if
(!readArgs(reader)) {
3468
return
false
;
3469
}
3470
return
true
;
3471
}
3472
3473
bool
IMap2DMsgs_get_location_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3474
{
3475
std::string tag = reader.
readTag
(
s_tag_len
);
3476
if
(reader.
isError
()) {
3477
return
false
;
3478
}
3479
if
(tag !=
s_tag
) {
3480
reader.
fail
();
3481
return
false
;
3482
}
3483
return
true
;
3484
}
3485
3486
bool
IMap2DMsgs_get_location_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3487
{
3488
if
(reader.
noMore
()) {
3489
reader.
fail
();
3490
return
false
;
3491
}
3492
if
(!reader.
readString
(location_name)) {
3493
reader.
fail
();
3494
return
false
;
3495
}
3496
if
(!reader.
noMore
()) {
3497
reader.
fail
();
3498
return
false
;
3499
}
3500
return
true
;
3501
}
3502
3503
bool
IMap2DMsgs_get_location_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3504
{
3505
yarp::os::idl::WireWriter
writer(connection);
3506
return
write
(writer);
3507
}
3508
3509
bool
IMap2DMsgs_get_location_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3510
{
3511
yarp::os::idl::WireReader
reader(connection);
3512
return
read
(reader);
3513
}
3514
3515
bool
IMap2DMsgs_get_location_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3516
{
3517
if
(!writer.
isNull
()) {
3518
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3519
return
false
;
3520
}
3521
if
(!writer.
write
(return_helper)) {
3522
return
false
;
3523
}
3524
}
3525
return
true
;
3526
}
3527
3528
bool
IMap2DMsgs_get_location_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3529
{
3530
if
(!reader.
readListReturn
()) {
3531
return
false
;
3532
}
3533
if
(reader.
noMore
()) {
3534
reader.
fail
();
3535
return
false
;
3536
}
3537
if
(!reader.
read
(return_helper)) {
3538
reader.
fail
();
3539
return
false
;
3540
}
3541
return
true
;
3542
}
3543
3544
void
IMap2DMsgs_get_location_RPC_helper::call
(
IMap2DMsgs
* ptr)
3545
{
3546
reply
.
return_helper
= ptr->
get_location_RPC
(
cmd
.
location_name
);
3547
}
3548
3549
// get_area_RPC helper class implementation
3550
IMap2DMsgs_get_area_RPC_helper::IMap2DMsgs_get_area_RPC_helper
(
const
std::string& area_name) :
3551
cmd
{area_name}
3552
{
3553
}
3554
3555
bool
IMap2DMsgs_get_area_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3556
{
3557
return
cmd
.
write
(connection);
3558
}
3559
3560
bool
IMap2DMsgs_get_area_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3561
{
3562
return
reply
.
read
(connection);
3563
}
3564
3565
IMap2DMsgs_get_area_RPC_helper::Command::Command
(
const
std::string& area_name) :
3566
area_name{area_name}
3567
{
3568
}
3569
3570
bool
IMap2DMsgs_get_area_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3571
{
3572
yarp::os::idl::WireWriter
writer(connection);
3573
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3574
return
false
;
3575
}
3576
return
write
(writer);
3577
}
3578
3579
bool
IMap2DMsgs_get_area_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3580
{
3581
yarp::os::idl::WireReader
reader(connection);
3582
if
(!reader.
readListHeader
()) {
3583
reader.
fail
();
3584
return
false
;
3585
}
3586
return
read
(reader);
3587
}
3588
3589
bool
IMap2DMsgs_get_area_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3590
{
3591
if
(!writeTag(writer)) {
3592
return
false
;
3593
}
3594
if
(!writeArgs(writer)) {
3595
return
false
;
3596
}
3597
return
true
;
3598
}
3599
3600
bool
IMap2DMsgs_get_area_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3601
{
3602
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3603
return
false
;
3604
}
3605
return
true
;
3606
}
3607
3608
bool
IMap2DMsgs_get_area_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
3609
{
3610
if
(!writer.
writeString
(area_name)) {
3611
return
false
;
3612
}
3613
return
true
;
3614
}
3615
3616
bool
IMap2DMsgs_get_area_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3617
{
3618
if
(!readTag(reader)) {
3619
return
false
;
3620
}
3621
if
(!readArgs(reader)) {
3622
return
false
;
3623
}
3624
return
true
;
3625
}
3626
3627
bool
IMap2DMsgs_get_area_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3628
{
3629
std::string tag = reader.
readTag
(
s_tag_len
);
3630
if
(reader.
isError
()) {
3631
return
false
;
3632
}
3633
if
(tag !=
s_tag
) {
3634
reader.
fail
();
3635
return
false
;
3636
}
3637
return
true
;
3638
}
3639
3640
bool
IMap2DMsgs_get_area_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3641
{
3642
if
(reader.
noMore
()) {
3643
reader.
fail
();
3644
return
false
;
3645
}
3646
if
(!reader.
readString
(area_name)) {
3647
reader.
fail
();
3648
return
false
;
3649
}
3650
if
(!reader.
noMore
()) {
3651
reader.
fail
();
3652
return
false
;
3653
}
3654
return
true
;
3655
}
3656
3657
bool
IMap2DMsgs_get_area_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3658
{
3659
yarp::os::idl::WireWriter
writer(connection);
3660
return
write
(writer);
3661
}
3662
3663
bool
IMap2DMsgs_get_area_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3664
{
3665
yarp::os::idl::WireReader
reader(connection);
3666
return
read
(reader);
3667
}
3668
3669
bool
IMap2DMsgs_get_area_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3670
{
3671
if
(!writer.
isNull
()) {
3672
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3673
return
false
;
3674
}
3675
if
(!writer.
write
(return_helper)) {
3676
return
false
;
3677
}
3678
}
3679
return
true
;
3680
}
3681
3682
bool
IMap2DMsgs_get_area_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3683
{
3684
if
(!reader.
readListReturn
()) {
3685
return
false
;
3686
}
3687
if
(reader.
noMore
()) {
3688
reader.
fail
();
3689
return
false
;
3690
}
3691
if
(!reader.
read
(return_helper)) {
3692
reader.
fail
();
3693
return
false
;
3694
}
3695
return
true
;
3696
}
3697
3698
void
IMap2DMsgs_get_area_RPC_helper::call
(
IMap2DMsgs
* ptr)
3699
{
3700
reply
.
return_helper
= ptr->
get_area_RPC
(
cmd
.
area_name
);
3701
}
3702
3703
// get_path_RPC helper class implementation
3704
IMap2DMsgs_get_path_RPC_helper::IMap2DMsgs_get_path_RPC_helper
(
const
std::string& path_name) :
3705
cmd
{path_name}
3706
{
3707
}
3708
3709
bool
IMap2DMsgs_get_path_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3710
{
3711
return
cmd
.
write
(connection);
3712
}
3713
3714
bool
IMap2DMsgs_get_path_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3715
{
3716
return
reply
.
read
(connection);
3717
}
3718
3719
IMap2DMsgs_get_path_RPC_helper::Command::Command
(
const
std::string& path_name) :
3720
path_name{path_name}
3721
{
3722
}
3723
3724
bool
IMap2DMsgs_get_path_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3725
{
3726
yarp::os::idl::WireWriter
writer(connection);
3727
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3728
return
false
;
3729
}
3730
return
write
(writer);
3731
}
3732
3733
bool
IMap2DMsgs_get_path_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3734
{
3735
yarp::os::idl::WireReader
reader(connection);
3736
if
(!reader.
readListHeader
()) {
3737
reader.
fail
();
3738
return
false
;
3739
}
3740
return
read
(reader);
3741
}
3742
3743
bool
IMap2DMsgs_get_path_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3744
{
3745
if
(!writeTag(writer)) {
3746
return
false
;
3747
}
3748
if
(!writeArgs(writer)) {
3749
return
false
;
3750
}
3751
return
true
;
3752
}
3753
3754
bool
IMap2DMsgs_get_path_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3755
{
3756
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3757
return
false
;
3758
}
3759
return
true
;
3760
}
3761
3762
bool
IMap2DMsgs_get_path_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer)
const
3763
{
3764
if
(!writer.
writeString
(path_name)) {
3765
return
false
;
3766
}
3767
return
true
;
3768
}
3769
3770
bool
IMap2DMsgs_get_path_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3771
{
3772
if
(!readTag(reader)) {
3773
return
false
;
3774
}
3775
if
(!readArgs(reader)) {
3776
return
false
;
3777
}
3778
return
true
;
3779
}
3780
3781
bool
IMap2DMsgs_get_path_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3782
{
3783
std::string tag = reader.
readTag
(
s_tag_len
);
3784
if
(reader.
isError
()) {
3785
return
false
;
3786
}
3787
if
(tag !=
s_tag
) {
3788
reader.
fail
();
3789
return
false
;
3790
}
3791
return
true
;
3792
}
3793
3794
bool
IMap2DMsgs_get_path_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3795
{
3796
if
(reader.
noMore
()) {
3797
reader.
fail
();
3798
return
false
;
3799
}
3800
if
(!reader.
readString
(path_name)) {
3801
reader.
fail
();
3802
return
false
;
3803
}
3804
if
(!reader.
noMore
()) {
3805
reader.
fail
();
3806
return
false
;
3807
}
3808
return
true
;
3809
}
3810
3811
bool
IMap2DMsgs_get_path_RPC_helper::Reply::write
(
yarp::os::ConnectionWriter
& connection)
const
3812
{
3813
yarp::os::idl::WireWriter
writer(connection);
3814
return
write
(writer);
3815
}
3816
3817
bool
IMap2DMsgs_get_path_RPC_helper::Reply::read
(
yarp::os::ConnectionReader
& connection)
3818
{
3819
yarp::os::idl::WireReader
reader(connection);
3820
return
read
(reader);
3821
}
3822
3823
bool
IMap2DMsgs_get_path_RPC_helper::Reply::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3824
{
3825
if
(!writer.
isNull
()) {
3826
if
(!writer.
writeListHeader
(
s_reply_len
)) {
3827
return
false
;
3828
}
3829
if
(!writer.
write
(return_helper)) {
3830
return
false
;
3831
}
3832
}
3833
return
true
;
3834
}
3835
3836
bool
IMap2DMsgs_get_path_RPC_helper::Reply::read
(
yarp::os::idl::WireReader
& reader)
3837
{
3838
if
(!reader.
readListReturn
()) {
3839
return
false
;
3840
}
3841
if
(reader.
noMore
()) {
3842
reader.
fail
();
3843
return
false
;
3844
}
3845
if
(!reader.
read
(return_helper)) {
3846
reader.
fail
();
3847
return
false
;
3848
}
3849
return
true
;
3850
}
3851
3852
void
IMap2DMsgs_get_path_RPC_helper::call
(
IMap2DMsgs
* ptr)
3853
{
3854
reply
.
return_helper
= ptr->
get_path_RPC
(
cmd
.
path_name
);
3855
}
3856
3857
// get_locations_list_RPC helper class implementation
3858
bool
IMap2DMsgs_get_locations_list_RPC_helper::write
(
yarp::os::ConnectionWriter
& connection)
const
3859
{
3860
return
cmd
.
write
(connection);
3861
}
3862
3863
bool
IMap2DMsgs_get_locations_list_RPC_helper::read
(
yarp::os::ConnectionReader
& connection)
3864
{
3865
return
reply
.
read
(connection);
3866
}
3867
3868
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::write
(
yarp::os::ConnectionWriter
& connection)
const
3869
{
3870
yarp::os::idl::WireWriter
writer(connection);
3871
if
(!writer.
writeListHeader
(
s_cmd_len
)) {
3872
return
false
;
3873
}
3874
return
write
(writer);
3875
}
3876
3877
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::read
(
yarp::os::ConnectionReader
& connection)
3878
{
3879
yarp::os::idl::WireReader
reader(connection);
3880
if
(!reader.
readListHeader
()) {
3881
reader.
fail
();
3882
return
false
;
3883
}
3884
return
read
(reader);
3885
}
3886
3887
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::write
(
const
yarp::os::idl::WireWriter
& writer)
const
3888
{
3889
if
(!writeTag(writer)) {
3890
return
false
;
3891
}
3892
if
(!writeArgs(writer)) {
3893
return
false
;
3894
}
3895
return
true
;
3896
}
3897
3898
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::writeTag
(
const
yarp::os::idl::WireWriter
& writer)
const
3899
{
3900
if
(!writer.
writeTag
(
s_tag
, 1,
s_tag_len
)) {
3901
return
false
;
3902
}
3903
return
true
;
3904
}
3905
3906
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::writeArgs
(
const
yarp::os::idl::WireWriter
& writer [[maybe_unused]])
const
3907
{
3908
return
true
;
3909
}
3910
3911
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::read
(
yarp::os::idl::WireReader
& reader)
3912
{
3913
if
(!readTag(reader)) {
3914
return
false
;
3915
}
3916
if
(!readArgs(reader)) {
3917
return
false
;
3918
}
3919
return
true
;
3920
}
3921
3922
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::readTag
(
yarp::os::idl::WireReader
& reader)
3923
{
3924
std::string tag = reader.
readTag
(
s_tag_len
);
3925
if
(reader.
isError
()) {
3926
return
false
;
3927
}
3928
if
(tag !=
s_tag
) {
3929
reader.
fail
();
3930
return
false
;
3931
}
3932
return
true
;
3933
}
3934
3935
bool
IMap2DMsgs_get_locations_list_RPC_helper::Command::readArgs
(
yarp::os::idl::WireReader
& reader)
3936
{