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
14
15#include <algorithm>
16
17// clear_all_maps_RPC helper class declaration
20{
21public:
23 bool write(yarp::os::ConnectionWriter& connection) const override;
24 bool read(yarp::os::ConnectionReader& connection) override;
25
26 class Command :
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;
43 };
44
45 class Reply :
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
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
78{
79public:
82 bool write(yarp::os::ConnectionWriter& connection) const override;
83 bool read(yarp::os::ConnectionReader& connection) override;
84
85 class Command :
87 {
88 public:
89 Command() = default;
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;
104
106 };
107
108 class Reply :
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
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
140 public yarp::os::Portable
141{
142public:
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 :
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;
167
168 std::string map_name{};
169 };
170
171 class Reply :
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
185 };
186
187 using funcptr_t = return_get_map (*)(const std::string&);
188 void call(IMap2DMsgs* ptr);
189
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
203 public yarp::os::Portable
204{
205public:
207 bool write(yarp::os::ConnectionWriter& connection) const override;
208 bool read(yarp::os::ConnectionReader& connection) override;
209
210 class Command :
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;
227 };
228
229 class Reply :
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
243 };
244
246 void call(IMap2DMsgs* ptr);
247
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
261 public yarp::os::Portable
262{
263public:
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 :
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;
288
289 std::string map_name{};
290 };
291
292 class Reply :
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
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
324 public yarp::os::Portable
325{
326public:
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 :
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;
351
352 std::string location_name{};
354 };
355
356 class Reply :
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
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
388 public yarp::os::Portable
389{
390public:
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 :
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;
415
416 std::string area_name{};
418 };
419
420 class Reply :
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
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
452 public yarp::os::Portable
453{
454public:
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 :
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;
479
480 std::string path_name{};
482 };
483
484 class Reply :
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
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
516 public yarp::os::Portable
517{
518public:
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 :
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;
543
544 std::string location_name{};
545 };
546
547 class Reply :
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
561 };
562
563 using funcptr_t = return_get_location (*)(const std::string&);
564 void call(IMap2DMsgs* ptr);
565
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
579 public yarp::os::Portable
580{
581public:
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 :
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;
606
607 std::string area_name{};
608 };
609
610 class Reply :
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
624 };
625
626 using funcptr_t = return_get_area (*)(const std::string&);
627 void call(IMap2DMsgs* ptr);
628
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
642 public yarp::os::Portable
643{
644public:
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 :
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;
669
670 std::string path_name{};
671 };
672
673 class Reply :
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
687 };
688
689 using funcptr_t = return_get_path (*)(const std::string&);
690 void call(IMap2DMsgs* ptr);
691
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
705 public yarp::os::Portable
706{
707public:
709 bool write(yarp::os::ConnectionWriter& connection) const override;
710 bool read(yarp::os::ConnectionReader& connection) override;
711
712 class Command :
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;
729 };
730
731 class Reply :
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
745 };
746
748 void call(IMap2DMsgs* ptr);
749
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
763 public yarp::os::Portable
764{
765public:
767 bool write(yarp::os::ConnectionWriter& connection) const override;
768 bool read(yarp::os::ConnectionReader& connection) override;
769
770 class Command :
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;
787 };
788
789 class Reply :
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
803 };
804
806 void call(IMap2DMsgs* ptr);
807
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
821 public yarp::os::Portable
822{
823public:
825 bool write(yarp::os::ConnectionWriter& connection) const override;
826 bool read(yarp::os::ConnectionReader& connection) override;
827
828 class Command :
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;
845 };
846
847 class Reply :
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
861 };
862
864 void call(IMap2DMsgs* ptr);
865
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
879 public yarp::os::Portable
880{
881public:
883 bool write(yarp::os::ConnectionWriter& connection) const override;
884 bool read(yarp::os::ConnectionReader& connection) override;
885
886 class Command :
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;
903 };
904
905 class Reply :
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
919 };
920
922 void call(IMap2DMsgs* ptr);
923
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
937 public yarp::os::Portable
938{
939public:
941 bool write(yarp::os::ConnectionWriter& connection) const override;
942 bool read(yarp::os::ConnectionReader& connection) override;
943
944 class Command :
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;
961 };
962
963 class Reply :
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
977 };
978
980 void call(IMap2DMsgs* ptr);
981
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
995 public yarp::os::Portable
996{
997public:
999 bool write(yarp::os::ConnectionWriter& connection) const override;
1000 bool read(yarp::os::ConnectionReader& connection) override;
1001
1002 class Command :
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 :
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
1035 };
1036
1038 void call(IMap2DMsgs* ptr);
1039
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
1053 public yarp::os::Portable
1054{
1055public:
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 :
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 :
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
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
1117 public yarp::os::Portable
1118{
1119public:
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 :
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 :
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
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
1180 public yarp::os::Portable
1181{
1182public:
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 :
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 :
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
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
1243 public yarp::os::Portable
1244{
1245public:
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 :
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 :
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
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
1307 public yarp::os::Portable
1308{
1309public:
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 :
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 :
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
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
1371 public yarp::os::Portable
1372{
1373public:
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 :
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 :
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
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
1434 public yarp::os::Portable
1435{
1436public:
1438 bool write(yarp::os::ConnectionWriter& connection) const override;
1439 bool read(yarp::os::ConnectionReader& connection) override;
1440
1441 class Command :
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 :
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
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
1492 public yarp::os::Portable
1493{
1494public:
1496 bool write(yarp::os::ConnectionWriter& connection) const override;
1497 bool read(yarp::os::ConnectionReader& connection) override;
1498
1499 class Command :
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 :
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
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
1550 public yarp::os::Portable
1551{
1552public:
1554 bool write(yarp::os::ConnectionWriter& connection) const override;
1555 bool read(yarp::os::ConnectionReader& connection) override;
1556
1557 class Command :
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 :
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
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
1608 public yarp::os::Portable
1609{
1610public:
1612 bool write(yarp::os::ConnectionWriter& connection) const override;
1613 bool read(yarp::os::ConnectionReader& connection) override;
1614
1615 class Command :
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 :
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
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
1666 public yarp::os::Portable
1667{
1668public:
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 :
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 :
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
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
1729 public yarp::os::Portable
1730{
1731public:
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 :
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
1758 };
1759
1760 class Reply :
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
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
1792 public yarp::os::Portable
1793{
1794public:
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 :
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
1821 };
1822
1823 class Reply :
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
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
1855 public yarp::os::Portable
1856{
1857public:
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 :
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
1884 };
1885
1886 class Reply :
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
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
1918 public yarp::os::Portable
1919{
1920public:
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 :
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
1947 };
1948
1949 class Reply :
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
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
1981 public yarp::os::Portable
1982{
1983public:
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 :
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 :
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
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
2045 public yarp::os::Portable
2046{
2047public:
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 :
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 :
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
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
2108 public yarp::os::Portable
2109{
2110public:
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 :
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
2137 };
2138
2139 class Reply :
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
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
2171{
2172 return cmd.write(connection);
2173}
2174
2176{
2177 return reply.read(connection);
2178}
2179
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
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
2200{
2201 if (!writeTag(writer)) {
2202 return false;
2203 }
2204 if (!writeArgs(writer)) {
2205 return false;
2206 }
2207 return true;
2208}
2209
2211{
2212 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2213 return false;
2214 }
2215 return true;
2216}
2217
2219{
2220 return true;
2221}
2222
2224{
2225 if (!readTag(reader)) {
2226 return false;
2227 }
2228 if (!readArgs(reader)) {
2229 return false;
2230 }
2231 return true;
2232}
2233
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
2248{
2249 if (!reader.noMore()) {
2250 reader.fail();
2251 return false;
2252 }
2253 return true;
2254}
2255
2257{
2258 yarp::os::idl::WireWriter writer(connection);
2259 return write(writer);
2260}
2261
2263{
2264 yarp::os::idl::WireReader reader(connection);
2265 return read(reader);
2266}
2267
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
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
2301
2302// store_map_RPC helper class implementation
2307
2309{
2310 return cmd.write(connection);
2311}
2312
2314{
2315 return reply.read(connection);
2316}
2317
2322
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
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
2343{
2344 if (!writeTag(writer)) {
2345 return false;
2346 }
2347 if (!writeArgs(writer)) {
2348 return false;
2349 }
2350 return true;
2351}
2352
2354{
2355 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2356 return false;
2357 }
2358 return true;
2359}
2360
2362{
2363 if (!writer.writeNested(themap)) {
2364 return false;
2365 }
2366 return true;
2367}
2368
2370{
2371 if (!readTag(reader)) {
2372 return false;
2373 }
2374 if (!readArgs(reader)) {
2375 return false;
2376 }
2377 return true;
2378}
2379
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
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
2411{
2412 yarp::os::idl::WireWriter writer(connection);
2413 return write(writer);
2414}
2415
2417{
2418 yarp::os::idl::WireReader reader(connection);
2419 return read(reader);
2420}
2421
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
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
2455
2456// get_map_RPC helper class implementation
2458 cmd{map_name}
2459{
2460}
2461
2463{
2464 return cmd.write(connection);
2465}
2466
2468{
2469 return reply.read(connection);
2470}
2471
2473 map_name{map_name}
2474{
2475}
2476
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
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
2497{
2498 if (!writeTag(writer)) {
2499 return false;
2500 }
2501 if (!writeArgs(writer)) {
2502 return false;
2503 }
2504 return true;
2505}
2506
2508{
2509 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2510 return false;
2511 }
2512 return true;
2513}
2514
2516{
2517 if (!writer.writeString(map_name)) {
2518 return false;
2519 }
2520 return true;
2521}
2522
2524{
2525 if (!readTag(reader)) {
2526 return false;
2527 }
2528 if (!readArgs(reader)) {
2529 return false;
2530 }
2531 return true;
2532}
2533
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
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
2565{
2566 yarp::os::idl::WireWriter writer(connection);
2567 return write(writer);
2568}
2569
2571{
2572 yarp::os::idl::WireReader reader(connection);
2573 return read(reader);
2574}
2575
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
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
2609
2610// get_map_names_RPC helper class implementation
2612{
2613 return cmd.write(connection);
2614}
2615
2617{
2618 return reply.read(connection);
2619}
2620
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
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
2641{
2642 if (!writeTag(writer)) {
2643 return false;
2644 }
2645 if (!writeArgs(writer)) {
2646 return false;
2647 }
2648 return true;
2649}
2650
2652{
2653 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2654 return false;
2655 }
2656 return true;
2657}
2658
2660{
2661 return true;
2662}
2663
2665{
2666 if (!readTag(reader)) {
2667 return false;
2668 }
2669 if (!readArgs(reader)) {
2670 return false;
2671 }
2672 return true;
2673}
2674
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
2689{
2690 if (!reader.noMore()) {
2691 reader.fail();
2692 return false;
2693 }
2694 return true;
2695}
2696
2698{
2699 yarp::os::idl::WireWriter writer(connection);
2700 return write(writer);
2701}
2702
2704{
2705 yarp::os::idl::WireReader reader(connection);
2706 return read(reader);
2707}
2708
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
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
2742
2743// remove_map_RPC helper class implementation
2745 cmd{map_name}
2746{
2747}
2748
2750{
2751 return cmd.write(connection);
2752}
2753
2755{
2756 return reply.read(connection);
2757}
2758
2760 map_name{map_name}
2761{
2762}
2763
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
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
2784{
2785 if (!writeTag(writer)) {
2786 return false;
2787 }
2788 if (!writeArgs(writer)) {
2789 return false;
2790 }
2791 return true;
2792}
2793
2795{
2796 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2797 return false;
2798 }
2799 return true;
2800}
2801
2803{
2804 if (!writer.writeString(map_name)) {
2805 return false;
2806 }
2807 return true;
2808}
2809
2811{
2812 if (!readTag(reader)) {
2813 return false;
2814 }
2815 if (!readArgs(reader)) {
2816 return false;
2817 }
2818 return true;
2819}
2820
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
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
2852{
2853 yarp::os::idl::WireWriter writer(connection);
2854 return write(writer);
2855}
2856
2858{
2859 yarp::os::idl::WireReader reader(connection);
2860 return read(reader);
2861}
2862
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
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
2896
2897// store_location_RPC helper class implementation
2899 cmd{location_name, loc}
2900{
2901}
2902
2904{
2905 return cmd.write(connection);
2906}
2907
2909{
2910 return reply.read(connection);
2911}
2912
2914 location_name{location_name},
2915 loc{loc}
2916{
2917}
2918
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
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
2939{
2940 if (!writeTag(writer)) {
2941 return false;
2942 }
2943 if (!writeArgs(writer)) {
2944 return false;
2945 }
2946 return true;
2947}
2948
2950{
2951 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
2952 return false;
2953 }
2954 return true;
2955}
2956
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
2969{
2970 if (!readTag(reader)) {
2971 return false;
2972 }
2973 if (!readArgs(reader)) {
2974 return false;
2975 }
2976 return true;
2977}
2978
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
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
3018{
3019 yarp::os::idl::WireWriter writer(connection);
3020 return write(writer);
3021}
3022
3024{
3025 yarp::os::idl::WireReader reader(connection);
3026 return read(reader);
3027}
3028
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
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
3062
3063// store_area_RPC helper class implementation
3065 cmd{area_name, area}
3066{
3067}
3068
3070{
3071 return cmd.write(connection);
3072}
3073
3075{
3076 return reply.read(connection);
3077}
3078
3080 area_name{area_name},
3081 area{area}
3082{
3083}
3084
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
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
3105{
3106 if (!writeTag(writer)) {
3107 return false;
3108 }
3109 if (!writeArgs(writer)) {
3110 return false;
3111 }
3112 return true;
3113}
3114
3116{
3117 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3118 return false;
3119 }
3120 return true;
3121}
3122
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
3135{
3136 if (!readTag(reader)) {
3137 return false;
3138 }
3139 if (!readArgs(reader)) {
3140 return false;
3141 }
3142 return true;
3143}
3144
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
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
3184{
3185 yarp::os::idl::WireWriter writer(connection);
3186 return write(writer);
3187}
3188
3190{
3191 yarp::os::idl::WireReader reader(connection);
3192 return read(reader);
3193}
3194
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
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
3228
3229// store_path_RPC helper class implementation
3231 cmd{path_name, path}
3232{
3233}
3234
3236{
3237 return cmd.write(connection);
3238}
3239
3241{
3242 return reply.read(connection);
3243}
3244
3246 path_name{path_name},
3247 path{path}
3248{
3249}
3250
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
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
3271{
3272 if (!writeTag(writer)) {
3273 return false;
3274 }
3275 if (!writeArgs(writer)) {
3276 return false;
3277 }
3278 return true;
3279}
3280
3282{
3283 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3284 return false;
3285 }
3286 return true;
3287}
3288
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
3301{
3302 if (!readTag(reader)) {
3303 return false;
3304 }
3305 if (!readArgs(reader)) {
3306 return false;
3307 }
3308 return true;
3309}
3310
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
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
3350{
3351 yarp::os::idl::WireWriter writer(connection);
3352 return write(writer);
3353}
3354
3356{
3357 yarp::os::idl::WireReader reader(connection);
3358 return read(reader);
3359}
3360
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
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
3394
3395// get_location_RPC helper class implementation
3397 cmd{location_name}
3398{
3399}
3400
3402{
3403 return cmd.write(connection);
3404}
3405
3407{
3408 return reply.read(connection);
3409}
3410
3412 location_name{location_name}
3413{
3414}
3415
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
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
3436{
3437 if (!writeTag(writer)) {
3438 return false;
3439 }
3440 if (!writeArgs(writer)) {
3441 return false;
3442 }
3443 return true;
3444}
3445
3447{
3448 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3449 return false;
3450 }
3451 return true;
3452}
3453
3455{
3456 if (!writer.writeString(location_name)) {
3457 return false;
3458 }
3459 return true;
3460}
3461
3463{
3464 if (!readTag(reader)) {
3465 return false;
3466 }
3467 if (!readArgs(reader)) {
3468 return false;
3469 }
3470 return true;
3471}
3472
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
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
3504{
3505 yarp::os::idl::WireWriter writer(connection);
3506 return write(writer);
3507}
3508
3510{
3511 yarp::os::idl::WireReader reader(connection);
3512 return read(reader);
3513}
3514
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
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
3548
3549// get_area_RPC helper class implementation
3551 cmd{area_name}
3552{
3553}
3554
3556{
3557 return cmd.write(connection);
3558}
3559
3561{
3562 return reply.read(connection);
3563}
3564
3566 area_name{area_name}
3567{
3568}
3569
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
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
3590{
3591 if (!writeTag(writer)) {
3592 return false;
3593 }
3594 if (!writeArgs(writer)) {
3595 return false;
3596 }
3597 return true;
3598}
3599
3601{
3602 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3603 return false;
3604 }
3605 return true;
3606}
3607
3609{
3610 if (!writer.writeString(area_name)) {
3611 return false;
3612 }
3613 return true;
3614}
3615
3617{
3618 if (!readTag(reader)) {
3619 return false;
3620 }
3621 if (!readArgs(reader)) {
3622 return false;
3623 }
3624 return true;
3625}
3626
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
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
3658{
3659 yarp::os::idl::WireWriter writer(connection);
3660 return write(writer);
3661}
3662
3664{
3665 yarp::os::idl::WireReader reader(connection);
3666 return read(reader);
3667}
3668
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
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
3702
3703// get_path_RPC helper class implementation
3705 cmd{path_name}
3706{
3707}
3708
3710{
3711 return cmd.write(connection);
3712}
3713
3715{
3716 return reply.read(connection);
3717}
3718
3720 path_name{path_name}
3721{
3722}
3723
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
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
3744{
3745 if (!writeTag(writer)) {
3746 return false;
3747 }
3748 if (!writeArgs(writer)) {
3749 return false;
3750 }
3751 return true;
3752}
3753
3755{
3756 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3757 return false;
3758 }
3759 return true;
3760}
3761
3763{
3764 if (!writer.writeString(path_name)) {
3765 return false;
3766 }
3767 return true;
3768}
3769
3771{
3772 if (!readTag(reader)) {
3773 return false;
3774 }
3775 if (!readArgs(reader)) {
3776 return false;
3777 }
3778 return true;
3779}
3780
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
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
3812{
3813 yarp::os::idl::WireWriter writer(connection);
3814 return write(writer);
3815}
3816
3818{
3819 yarp::os::idl::WireReader reader(connection);
3820 return read(reader);
3821}
3822
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
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
3856
3857// get_locations_list_RPC helper class implementation
3859{
3860 return cmd.write(connection);
3861}
3862
3864{
3865 return reply.read(connection);
3866}
3867
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
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
3888{
3889 if (!writeTag(writer)) {
3890 return false;
3891 }
3892 if (!writeArgs(writer)) {
3893 return false;
3894 }
3895 return true;
3896}
3897
3899{
3900 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
3901 return false;
3902 }
3903 return true;
3904}
3905
3907{
3908 return true;
3909}
3910
3912{
3913 if (!readTag(reader)) {
3914 return false;
3915 }
3916 if (!readArgs(reader)) {
3917 return false;
3918 }
3919 return true;
3920}
3921
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