YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ISpeechSynthesizerMsgs.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
12
14
15#include <algorithm>
16
17// set_language helper class declaration
20{
21public:
23 explicit ISpeechSynthesizerMsgs_set_language_helper(const std::string& language);
24 bool write(yarp::os::ConnectionWriter& connection) const override;
25 bool read(yarp::os::ConnectionReader& connection) override;
26
27 class Command :
29 {
30 public:
31 Command() = default;
32 explicit Command(const std::string& language);
33
34 ~Command() override = default;
35
36 bool write(yarp::os::ConnectionWriter& connection) const override;
37 bool read(yarp::os::ConnectionReader& connection) override;
38
39 bool write(const yarp::os::idl::WireWriter& writer) const override;
40 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
41 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
42
43 bool read(yarp::os::idl::WireReader& reader) override;
46
47 std::string language{};
48 };
49
50 class Reply :
52 {
53 public:
54 Reply() = default;
55 ~Reply() override = default;
56
57 bool write(yarp::os::ConnectionWriter& connection) const override;
58 bool read(yarp::os::ConnectionReader& connection) override;
59
60 bool write(const yarp::os::idl::WireWriter& writer) const override;
61 bool read(yarp::os::idl::WireReader& reader) override;
62
64 };
65
66 using funcptr_t = return_set_language (*)(const std::string&);
68
71
72 static constexpr const char* s_tag{"set_language"};
73 static constexpr size_t s_tag_len{2};
74 static constexpr size_t s_cmd_len{3};
75 static constexpr size_t s_reply_len{1};
76 static constexpr const char* s_prototype{"return_set_language ISpeechSynthesizerMsgs::set_language(const std::string& language)"};
77 static constexpr const char* s_help{""};
78};
79
80// get_language helper class declaration
83{
84public:
86 bool write(yarp::os::ConnectionWriter& connection) const override;
87 bool read(yarp::os::ConnectionReader& connection) override;
88
89 class Command :
91 {
92 public:
93 Command() = default;
94 ~Command() override = default;
95
96 bool write(yarp::os::ConnectionWriter& connection) const override;
97 bool read(yarp::os::ConnectionReader& connection) override;
98
99 bool write(const yarp::os::idl::WireWriter& writer) const override;
100 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
101 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
102
103 bool read(yarp::os::idl::WireReader& reader) override;
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
122 };
123
125 void call(ISpeechSynthesizerMsgs* ptr);
126
129
130 static constexpr const char* s_tag{"get_language"};
131 static constexpr size_t s_tag_len{2};
132 static constexpr size_t s_cmd_len{2};
133 static constexpr size_t s_reply_len{2};
134 static constexpr const char* s_prototype{"return_get_language ISpeechSynthesizerMsgs::get_language()"};
135 static constexpr const char* s_help{""};
136};
137
138// set_voice helper class declaration
140 public yarp::os::Portable
141{
142public:
144 explicit ISpeechSynthesizerMsgs_set_voice_helper(const std::string& language);
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& language);
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 language{};
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_set_voice (*)(const std::string&);
188 void call(ISpeechSynthesizerMsgs* ptr);
189
192
193 static constexpr const char* s_tag{"set_voice"};
194 static constexpr size_t s_tag_len{2};
195 static constexpr size_t s_cmd_len{3};
196 static constexpr size_t s_reply_len{1};
197 static constexpr const char* s_prototype{"return_set_voice ISpeechSynthesizerMsgs::set_voice(const std::string& language)"};
198 static constexpr const char* s_help{""};
199};
200
201// get_voice 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(ISpeechSynthesizerMsgs* ptr);
247
250
251 static constexpr const char* s_tag{"get_voice"};
252 static constexpr size_t s_tag_len{2};
253 static constexpr size_t s_cmd_len{2};
254 static constexpr size_t s_reply_len{2};
255 static constexpr const char* s_prototype{"return_get_voice ISpeechSynthesizerMsgs::get_voice()"};
256 static constexpr const char* s_help{""};
257};
258
259// set_speed helper class declaration
261 public yarp::os::Portable
262{
263public:
265 explicit ISpeechSynthesizerMsgs_set_speed_helper(const double speed);
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 double speed);
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 double speed{0.0};
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
306 };
307
308 using funcptr_t = return_set_speed (*)(const double);
309 void call(ISpeechSynthesizerMsgs* ptr);
310
313
314 static constexpr const char* s_tag{"set_speed"};
315 static constexpr size_t s_tag_len{2};
316 static constexpr size_t s_cmd_len{3};
317 static constexpr size_t s_reply_len{1};
318 static constexpr const char* s_prototype{"return_set_speed ISpeechSynthesizerMsgs::set_speed(const double speed)"};
319 static constexpr const char* s_help{""};
320};
321
322// get_speed helper class declaration
324 public yarp::os::Portable
325{
326public:
328 bool write(yarp::os::ConnectionWriter& connection) const override;
329 bool read(yarp::os::ConnectionReader& connection) override;
330
331 class Command :
333 {
334 public:
335 Command() = default;
336 ~Command() override = default;
337
338 bool write(yarp::os::ConnectionWriter& connection) const override;
339 bool read(yarp::os::ConnectionReader& connection) override;
340
341 bool write(const yarp::os::idl::WireWriter& writer) const override;
342 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
343 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
344
345 bool read(yarp::os::idl::WireReader& reader) override;
348 };
349
350 class Reply :
352 {
353 public:
354 Reply() = default;
355 ~Reply() override = default;
356
357 bool write(yarp::os::ConnectionWriter& connection) const override;
358 bool read(yarp::os::ConnectionReader& connection) override;
359
360 bool write(const yarp::os::idl::WireWriter& writer) const override;
361 bool read(yarp::os::idl::WireReader& reader) override;
362
364 };
365
367 void call(ISpeechSynthesizerMsgs* ptr);
368
371
372 static constexpr const char* s_tag{"get_speed"};
373 static constexpr size_t s_tag_len{2};
374 static constexpr size_t s_cmd_len{2};
375 static constexpr size_t s_reply_len{2};
376 static constexpr const char* s_prototype{"return_get_speed ISpeechSynthesizerMsgs::get_speed()"};
377 static constexpr const char* s_help{""};
378};
379
380// set_pitch helper class declaration
382 public yarp::os::Portable
383{
384public:
386 explicit ISpeechSynthesizerMsgs_set_pitch_helper(const double pitch);
387 bool write(yarp::os::ConnectionWriter& connection) const override;
388 bool read(yarp::os::ConnectionReader& connection) override;
389
390 class Command :
392 {
393 public:
394 Command() = default;
395 explicit Command(const double pitch);
396
397 ~Command() override = default;
398
399 bool write(yarp::os::ConnectionWriter& connection) const override;
400 bool read(yarp::os::ConnectionReader& connection) override;
401
402 bool write(const yarp::os::idl::WireWriter& writer) const override;
403 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
404 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
405
406 bool read(yarp::os::idl::WireReader& reader) override;
409
410 double pitch{0.0};
411 };
412
413 class Reply :
415 {
416 public:
417 Reply() = default;
418 ~Reply() override = default;
419
420 bool write(yarp::os::ConnectionWriter& connection) const override;
421 bool read(yarp::os::ConnectionReader& connection) override;
422
423 bool write(const yarp::os::idl::WireWriter& writer) const override;
424 bool read(yarp::os::idl::WireReader& reader) override;
425
427 };
428
429 using funcptr_t = return_set_pitch (*)(const double);
430 void call(ISpeechSynthesizerMsgs* ptr);
431
434
435 static constexpr const char* s_tag{"set_pitch"};
436 static constexpr size_t s_tag_len{2};
437 static constexpr size_t s_cmd_len{3};
438 static constexpr size_t s_reply_len{1};
439 static constexpr const char* s_prototype{"return_set_pitch ISpeechSynthesizerMsgs::set_pitch(const double pitch)"};
440 static constexpr const char* s_help{""};
441};
442
443// get_pitch helper class declaration
445 public yarp::os::Portable
446{
447public:
449 bool write(yarp::os::ConnectionWriter& connection) const override;
450 bool read(yarp::os::ConnectionReader& connection) override;
451
452 class Command :
454 {
455 public:
456 Command() = default;
457 ~Command() override = default;
458
459 bool write(yarp::os::ConnectionWriter& connection) const override;
460 bool read(yarp::os::ConnectionReader& connection) override;
461
462 bool write(const yarp::os::idl::WireWriter& writer) const override;
463 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
464 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
465
466 bool read(yarp::os::idl::WireReader& reader) override;
469 };
470
471 class Reply :
473 {
474 public:
475 Reply() = default;
476 ~Reply() override = default;
477
478 bool write(yarp::os::ConnectionWriter& connection) const override;
479 bool read(yarp::os::ConnectionReader& connection) override;
480
481 bool write(const yarp::os::idl::WireWriter& writer) const override;
482 bool read(yarp::os::idl::WireReader& reader) override;
483
485 };
486
488 void call(ISpeechSynthesizerMsgs* ptr);
489
492
493 static constexpr const char* s_tag{"get_pitch"};
494 static constexpr size_t s_tag_len{2};
495 static constexpr size_t s_cmd_len{2};
496 static constexpr size_t s_reply_len{2};
497 static constexpr const char* s_prototype{"return_get_pitch ISpeechSynthesizerMsgs::get_pitch()"};
498 static constexpr const char* s_help{""};
499};
500
501// synthesize helper class declaration
503 public yarp::os::Portable
504{
505public:
507 explicit ISpeechSynthesizerMsgs_synthesize_helper(const std::string& text);
508 bool write(yarp::os::ConnectionWriter& connection) const override;
509 bool read(yarp::os::ConnectionReader& connection) override;
510
511 class Command :
513 {
514 public:
515 Command() = default;
516 explicit Command(const std::string& text);
517
518 ~Command() override = default;
519
520 bool write(yarp::os::ConnectionWriter& connection) const override;
521 bool read(yarp::os::ConnectionReader& connection) override;
522
523 bool write(const yarp::os::idl::WireWriter& writer) const override;
524 bool writeTag(const yarp::os::idl::WireWriter& writer) const;
525 bool writeArgs(const yarp::os::idl::WireWriter& writer) const;
526
527 bool read(yarp::os::idl::WireReader& reader) override;
530
531 std::string text{};
532 };
533
534 class Reply :
536 {
537 public:
538 Reply() = default;
539 ~Reply() override = default;
540
541 bool write(yarp::os::ConnectionWriter& connection) const override;
542 bool read(yarp::os::ConnectionReader& connection) override;
543
544 bool write(const yarp::os::idl::WireWriter& writer) const override;
545 bool read(yarp::os::idl::WireReader& reader) override;
546
548 };
549
550 using funcptr_t = return_synthesize (*)(const std::string&);
551 void call(ISpeechSynthesizerMsgs* ptr);
552
555
556 static constexpr const char* s_tag{"synthesize"};
557 static constexpr size_t s_tag_len{1};
558 static constexpr size_t s_cmd_len{2};
559 static constexpr size_t s_reply_len{2};
560 static constexpr const char* s_prototype{"return_synthesize ISpeechSynthesizerMsgs::synthesize(const std::string& text)"};
561 static constexpr const char* s_help{""};
562};
563
564// set_language helper class implementation
566 cmd{language}
567{
568}
569
571{
572 return cmd.write(connection);
573}
574
579
581 language{language}
582{
583}
584
586{
587 yarp::os::idl::WireWriter writer(connection);
588 if (!writer.writeListHeader(s_cmd_len)) {
589 return false;
590 }
591 return write(writer);
592}
593
595{
596 yarp::os::idl::WireReader reader(connection);
597 if (!reader.readListHeader()) {
598 reader.fail();
599 return false;
600 }
601 return read(reader);
602}
603
605{
606 if (!writeTag(writer)) {
607 return false;
608 }
609 if (!writeArgs(writer)) {
610 return false;
611 }
612 return true;
613}
614
616{
617 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
618 return false;
619 }
620 return true;
621}
622
624{
625 if (!writer.writeString(language)) {
626 return false;
627 }
628 return true;
629}
630
632{
633 if (!readTag(reader)) {
634 return false;
635 }
636 if (!readArgs(reader)) {
637 return false;
638 }
639 return true;
640}
641
643{
644 std::string tag = reader.readTag(s_tag_len);
645 if (reader.isError()) {
646 return false;
647 }
648 if (tag != s_tag) {
649 reader.fail();
650 return false;
651 }
652 return true;
653}
654
656{
657 if (reader.noMore()) {
658 reader.fail();
659 return false;
660 }
661 if (!reader.readString(language)) {
662 reader.fail();
663 return false;
664 }
665 if (!reader.noMore()) {
666 reader.fail();
667 return false;
668 }
669 return true;
670}
671
673{
674 yarp::os::idl::WireWriter writer(connection);
675 return write(writer);
676}
677
679{
680 yarp::os::idl::WireReader reader(connection);
681 return read(reader);
682}
683
685{
686 if (!writer.isNull()) {
687 if (!writer.writeListHeader(s_reply_len)) {
688 return false;
689 }
690 if (!writer.write(return_helper)) {
691 return false;
692 }
693 }
694 return true;
695}
696
698{
699 if (!reader.readListReturn()) {
700 return false;
701 }
702 if (reader.noMore()) {
703 reader.fail();
704 return false;
705 }
706 if (!reader.read(return_helper)) {
707 reader.fail();
708 return false;
709 }
710 return true;
711}
712
717
718// get_language helper class implementation
720{
721 return cmd.write(connection);
722}
723
728
730{
731 yarp::os::idl::WireWriter writer(connection);
732 if (!writer.writeListHeader(s_cmd_len)) {
733 return false;
734 }
735 return write(writer);
736}
737
739{
740 yarp::os::idl::WireReader reader(connection);
741 if (!reader.readListHeader()) {
742 reader.fail();
743 return false;
744 }
745 return read(reader);
746}
747
749{
750 if (!writeTag(writer)) {
751 return false;
752 }
753 if (!writeArgs(writer)) {
754 return false;
755 }
756 return true;
757}
758
760{
761 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
762 return false;
763 }
764 return true;
765}
766
768{
769 return true;
770}
771
773{
774 if (!readTag(reader)) {
775 return false;
776 }
777 if (!readArgs(reader)) {
778 return false;
779 }
780 return true;
781}
782
784{
785 std::string tag = reader.readTag(s_tag_len);
786 if (reader.isError()) {
787 return false;
788 }
789 if (tag != s_tag) {
790 reader.fail();
791 return false;
792 }
793 return true;
794}
795
797{
798 if (!reader.noMore()) {
799 reader.fail();
800 return false;
801 }
802 return true;
803}
804
806{
807 yarp::os::idl::WireWriter writer(connection);
808 return write(writer);
809}
810
812{
813 yarp::os::idl::WireReader reader(connection);
814 return read(reader);
815}
816
818{
819 if (!writer.isNull()) {
820 if (!writer.writeListHeader(s_reply_len)) {
821 return false;
822 }
823 if (!writer.write(return_helper)) {
824 return false;
825 }
826 }
827 return true;
828}
829
831{
832 if (!reader.readListReturn()) {
833 return false;
834 }
835 if (reader.noMore()) {
836 reader.fail();
837 return false;
838 }
839 if (!reader.read(return_helper)) {
840 reader.fail();
841 return false;
842 }
843 return true;
844}
845
850
851// set_voice helper class implementation
856
858{
859 return cmd.write(connection);
860}
861
863{
864 return reply.read(connection);
865}
866
868 language{language}
869{
870}
871
873{
874 yarp::os::idl::WireWriter writer(connection);
875 if (!writer.writeListHeader(s_cmd_len)) {
876 return false;
877 }
878 return write(writer);
879}
880
882{
883 yarp::os::idl::WireReader reader(connection);
884 if (!reader.readListHeader()) {
885 reader.fail();
886 return false;
887 }
888 return read(reader);
889}
890
892{
893 if (!writeTag(writer)) {
894 return false;
895 }
896 if (!writeArgs(writer)) {
897 return false;
898 }
899 return true;
900}
901
903{
904 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
905 return false;
906 }
907 return true;
908}
909
911{
912 if (!writer.writeString(language)) {
913 return false;
914 }
915 return true;
916}
917
919{
920 if (!readTag(reader)) {
921 return false;
922 }
923 if (!readArgs(reader)) {
924 return false;
925 }
926 return true;
927}
928
930{
931 std::string tag = reader.readTag(s_tag_len);
932 if (reader.isError()) {
933 return false;
934 }
935 if (tag != s_tag) {
936 reader.fail();
937 return false;
938 }
939 return true;
940}
941
943{
944 if (reader.noMore()) {
945 reader.fail();
946 return false;
947 }
948 if (!reader.readString(language)) {
949 reader.fail();
950 return false;
951 }
952 if (!reader.noMore()) {
953 reader.fail();
954 return false;
955 }
956 return true;
957}
958
960{
961 yarp::os::idl::WireWriter writer(connection);
962 return write(writer);
963}
964
966{
967 yarp::os::idl::WireReader reader(connection);
968 return read(reader);
969}
970
972{
973 if (!writer.isNull()) {
974 if (!writer.writeListHeader(s_reply_len)) {
975 return false;
976 }
977 if (!writer.write(return_helper)) {
978 return false;
979 }
980 }
981 return true;
982}
983
985{
986 if (!reader.readListReturn()) {
987 return false;
988 }
989 if (reader.noMore()) {
990 reader.fail();
991 return false;
992 }
993 if (!reader.read(return_helper)) {
994 reader.fail();
995 return false;
996 }
997 return true;
998}
999
1004
1005// get_voice helper class implementation
1007{
1008 return cmd.write(connection);
1009}
1010
1012{
1013 return reply.read(connection);
1014}
1015
1017{
1018 yarp::os::idl::WireWriter writer(connection);
1019 if (!writer.writeListHeader(s_cmd_len)) {
1020 return false;
1021 }
1022 return write(writer);
1023}
1024
1026{
1027 yarp::os::idl::WireReader reader(connection);
1028 if (!reader.readListHeader()) {
1029 reader.fail();
1030 return false;
1031 }
1032 return read(reader);
1033}
1034
1036{
1037 if (!writeTag(writer)) {
1038 return false;
1039 }
1040 if (!writeArgs(writer)) {
1041 return false;
1042 }
1043 return true;
1044}
1045
1047{
1048 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1049 return false;
1050 }
1051 return true;
1052}
1053
1055{
1056 return true;
1057}
1058
1060{
1061 if (!readTag(reader)) {
1062 return false;
1063 }
1064 if (!readArgs(reader)) {
1065 return false;
1066 }
1067 return true;
1068}
1069
1071{
1072 std::string tag = reader.readTag(s_tag_len);
1073 if (reader.isError()) {
1074 return false;
1075 }
1076 if (tag != s_tag) {
1077 reader.fail();
1078 return false;
1079 }
1080 return true;
1081}
1082
1084{
1085 if (!reader.noMore()) {
1086 reader.fail();
1087 return false;
1088 }
1089 return true;
1090}
1091
1093{
1094 yarp::os::idl::WireWriter writer(connection);
1095 return write(writer);
1096}
1097
1099{
1100 yarp::os::idl::WireReader reader(connection);
1101 return read(reader);
1102}
1103
1105{
1106 if (!writer.isNull()) {
1107 if (!writer.writeListHeader(s_reply_len)) {
1108 return false;
1109 }
1110 if (!writer.write(return_helper)) {
1111 return false;
1112 }
1113 }
1114 return true;
1115}
1116
1118{
1119 if (!reader.readListReturn()) {
1120 return false;
1121 }
1122 if (reader.noMore()) {
1123 reader.fail();
1124 return false;
1125 }
1126 if (!reader.read(return_helper)) {
1127 reader.fail();
1128 return false;
1129 }
1130 return true;
1131}
1132
1137
1138// set_speed helper class implementation
1143
1145{
1146 return cmd.write(connection);
1147}
1148
1150{
1151 return reply.read(connection);
1152}
1153
1155 speed{speed}
1156{
1157}
1158
1160{
1161 yarp::os::idl::WireWriter writer(connection);
1162 if (!writer.writeListHeader(s_cmd_len)) {
1163 return false;
1164 }
1165 return write(writer);
1166}
1167
1169{
1170 yarp::os::idl::WireReader reader(connection);
1171 if (!reader.readListHeader()) {
1172 reader.fail();
1173 return false;
1174 }
1175 return read(reader);
1176}
1177
1179{
1180 if (!writeTag(writer)) {
1181 return false;
1182 }
1183 if (!writeArgs(writer)) {
1184 return false;
1185 }
1186 return true;
1187}
1188
1190{
1191 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1192 return false;
1193 }
1194 return true;
1195}
1196
1198{
1199 if (!writer.writeFloat64(speed)) {
1200 return false;
1201 }
1202 return true;
1203}
1204
1206{
1207 if (!readTag(reader)) {
1208 return false;
1209 }
1210 if (!readArgs(reader)) {
1211 return false;
1212 }
1213 return true;
1214}
1215
1217{
1218 std::string tag = reader.readTag(s_tag_len);
1219 if (reader.isError()) {
1220 return false;
1221 }
1222 if (tag != s_tag) {
1223 reader.fail();
1224 return false;
1225 }
1226 return true;
1227}
1228
1230{
1231 if (reader.noMore()) {
1232 reader.fail();
1233 return false;
1234 }
1235 if (!reader.readFloat64(speed)) {
1236 reader.fail();
1237 return false;
1238 }
1239 if (!reader.noMore()) {
1240 reader.fail();
1241 return false;
1242 }
1243 return true;
1244}
1245
1247{
1248 yarp::os::idl::WireWriter writer(connection);
1249 return write(writer);
1250}
1251
1253{
1254 yarp::os::idl::WireReader reader(connection);
1255 return read(reader);
1256}
1257
1259{
1260 if (!writer.isNull()) {
1261 if (!writer.writeListHeader(s_reply_len)) {
1262 return false;
1263 }
1264 if (!writer.write(return_helper)) {
1265 return false;
1266 }
1267 }
1268 return true;
1269}
1270
1272{
1273 if (!reader.readListReturn()) {
1274 return false;
1275 }
1276 if (reader.noMore()) {
1277 reader.fail();
1278 return false;
1279 }
1280 if (!reader.read(return_helper)) {
1281 reader.fail();
1282 return false;
1283 }
1284 return true;
1285}
1286
1291
1292// get_speed helper class implementation
1294{
1295 return cmd.write(connection);
1296}
1297
1299{
1300 return reply.read(connection);
1301}
1302
1304{
1305 yarp::os::idl::WireWriter writer(connection);
1306 if (!writer.writeListHeader(s_cmd_len)) {
1307 return false;
1308 }
1309 return write(writer);
1310}
1311
1313{
1314 yarp::os::idl::WireReader reader(connection);
1315 if (!reader.readListHeader()) {
1316 reader.fail();
1317 return false;
1318 }
1319 return read(reader);
1320}
1321
1323{
1324 if (!writeTag(writer)) {
1325 return false;
1326 }
1327 if (!writeArgs(writer)) {
1328 return false;
1329 }
1330 return true;
1331}
1332
1334{
1335 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1336 return false;
1337 }
1338 return true;
1339}
1340
1342{
1343 return true;
1344}
1345
1347{
1348 if (!readTag(reader)) {
1349 return false;
1350 }
1351 if (!readArgs(reader)) {
1352 return false;
1353 }
1354 return true;
1355}
1356
1358{
1359 std::string tag = reader.readTag(s_tag_len);
1360 if (reader.isError()) {
1361 return false;
1362 }
1363 if (tag != s_tag) {
1364 reader.fail();
1365 return false;
1366 }
1367 return true;
1368}
1369
1371{
1372 if (!reader.noMore()) {
1373 reader.fail();
1374 return false;
1375 }
1376 return true;
1377}
1378
1380{
1381 yarp::os::idl::WireWriter writer(connection);
1382 return write(writer);
1383}
1384
1386{
1387 yarp::os::idl::WireReader reader(connection);
1388 return read(reader);
1389}
1390
1392{
1393 if (!writer.isNull()) {
1394 if (!writer.writeListHeader(s_reply_len)) {
1395 return false;
1396 }
1397 if (!writer.write(return_helper)) {
1398 return false;
1399 }
1400 }
1401 return true;
1402}
1403
1405{
1406 if (!reader.readListReturn()) {
1407 return false;
1408 }
1409 if (reader.noMore()) {
1410 reader.fail();
1411 return false;
1412 }
1413 if (!reader.read(return_helper)) {
1414 reader.fail();
1415 return false;
1416 }
1417 return true;
1418}
1419
1424
1425// set_pitch helper class implementation
1430
1432{
1433 return cmd.write(connection);
1434}
1435
1437{
1438 return reply.read(connection);
1439}
1440
1442 pitch{pitch}
1443{
1444}
1445
1447{
1448 yarp::os::idl::WireWriter writer(connection);
1449 if (!writer.writeListHeader(s_cmd_len)) {
1450 return false;
1451 }
1452 return write(writer);
1453}
1454
1456{
1457 yarp::os::idl::WireReader reader(connection);
1458 if (!reader.readListHeader()) {
1459 reader.fail();
1460 return false;
1461 }
1462 return read(reader);
1463}
1464
1466{
1467 if (!writeTag(writer)) {
1468 return false;
1469 }
1470 if (!writeArgs(writer)) {
1471 return false;
1472 }
1473 return true;
1474}
1475
1477{
1478 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1479 return false;
1480 }
1481 return true;
1482}
1483
1485{
1486 if (!writer.writeFloat64(pitch)) {
1487 return false;
1488 }
1489 return true;
1490}
1491
1493{
1494 if (!readTag(reader)) {
1495 return false;
1496 }
1497 if (!readArgs(reader)) {
1498 return false;
1499 }
1500 return true;
1501}
1502
1504{
1505 std::string tag = reader.readTag(s_tag_len);
1506 if (reader.isError()) {
1507 return false;
1508 }
1509 if (tag != s_tag) {
1510 reader.fail();
1511 return false;
1512 }
1513 return true;
1514}
1515
1517{
1518 if (reader.noMore()) {
1519 reader.fail();
1520 return false;
1521 }
1522 if (!reader.readFloat64(pitch)) {
1523 reader.fail();
1524 return false;
1525 }
1526 if (!reader.noMore()) {
1527 reader.fail();
1528 return false;
1529 }
1530 return true;
1531}
1532
1534{
1535 yarp::os::idl::WireWriter writer(connection);
1536 return write(writer);
1537}
1538
1540{
1541 yarp::os::idl::WireReader reader(connection);
1542 return read(reader);
1543}
1544
1546{
1547 if (!writer.isNull()) {
1548 if (!writer.writeListHeader(s_reply_len)) {
1549 return false;
1550 }
1551 if (!writer.write(return_helper)) {
1552 return false;
1553 }
1554 }
1555 return true;
1556}
1557
1559{
1560 if (!reader.readListReturn()) {
1561 return false;
1562 }
1563 if (reader.noMore()) {
1564 reader.fail();
1565 return false;
1566 }
1567 if (!reader.read(return_helper)) {
1568 reader.fail();
1569 return false;
1570 }
1571 return true;
1572}
1573
1578
1579// get_pitch helper class implementation
1581{
1582 return cmd.write(connection);
1583}
1584
1586{
1587 return reply.read(connection);
1588}
1589
1591{
1592 yarp::os::idl::WireWriter writer(connection);
1593 if (!writer.writeListHeader(s_cmd_len)) {
1594 return false;
1595 }
1596 return write(writer);
1597}
1598
1600{
1601 yarp::os::idl::WireReader reader(connection);
1602 if (!reader.readListHeader()) {
1603 reader.fail();
1604 return false;
1605 }
1606 return read(reader);
1607}
1608
1610{
1611 if (!writeTag(writer)) {
1612 return false;
1613 }
1614 if (!writeArgs(writer)) {
1615 return false;
1616 }
1617 return true;
1618}
1619
1621{
1622 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1623 return false;
1624 }
1625 return true;
1626}
1627
1629{
1630 return true;
1631}
1632
1634{
1635 if (!readTag(reader)) {
1636 return false;
1637 }
1638 if (!readArgs(reader)) {
1639 return false;
1640 }
1641 return true;
1642}
1643
1645{
1646 std::string tag = reader.readTag(s_tag_len);
1647 if (reader.isError()) {
1648 return false;
1649 }
1650 if (tag != s_tag) {
1651 reader.fail();
1652 return false;
1653 }
1654 return true;
1655}
1656
1658{
1659 if (!reader.noMore()) {
1660 reader.fail();
1661 return false;
1662 }
1663 return true;
1664}
1665
1667{
1668 yarp::os::idl::WireWriter writer(connection);
1669 return write(writer);
1670}
1671
1673{
1674 yarp::os::idl::WireReader reader(connection);
1675 return read(reader);
1676}
1677
1679{
1680 if (!writer.isNull()) {
1681 if (!writer.writeListHeader(s_reply_len)) {
1682 return false;
1683 }
1684 if (!writer.write(return_helper)) {
1685 return false;
1686 }
1687 }
1688 return true;
1689}
1690
1692{
1693 if (!reader.readListReturn()) {
1694 return false;
1695 }
1696 if (reader.noMore()) {
1697 reader.fail();
1698 return false;
1699 }
1700 if (!reader.read(return_helper)) {
1701 reader.fail();
1702 return false;
1703 }
1704 return true;
1705}
1706
1711
1712// synthesize helper class implementation
1717
1719{
1720 return cmd.write(connection);
1721}
1722
1724{
1725 return reply.read(connection);
1726}
1727
1729 text{text}
1730{
1731}
1732
1734{
1735 yarp::os::idl::WireWriter writer(connection);
1736 if (!writer.writeListHeader(s_cmd_len)) {
1737 return false;
1738 }
1739 return write(writer);
1740}
1741
1743{
1744 yarp::os::idl::WireReader reader(connection);
1745 if (!reader.readListHeader()) {
1746 reader.fail();
1747 return false;
1748 }
1749 return read(reader);
1750}
1751
1753{
1754 if (!writeTag(writer)) {
1755 return false;
1756 }
1757 if (!writeArgs(writer)) {
1758 return false;
1759 }
1760 return true;
1761}
1762
1764{
1765 if (!writer.writeTag(s_tag, 1, s_tag_len)) {
1766 return false;
1767 }
1768 return true;
1769}
1770
1772{
1773 if (!writer.writeString(text)) {
1774 return false;
1775 }
1776 return true;
1777}
1778
1780{
1781 if (!readTag(reader)) {
1782 return false;
1783 }
1784 if (!readArgs(reader)) {
1785 return false;
1786 }
1787 return true;
1788}
1789
1791{
1792 std::string tag = reader.readTag(s_tag_len);
1793 if (reader.isError()) {
1794 return false;
1795 }
1796 if (tag != s_tag) {
1797 reader.fail();
1798 return false;
1799 }
1800 return true;
1801}
1802
1804{
1805 if (reader.noMore()) {
1806 reader.fail();
1807 return false;
1808 }
1809 if (!reader.readString(text)) {
1810 reader.fail();
1811 return false;
1812 }
1813 if (!reader.noMore()) {
1814 reader.fail();
1815 return false;
1816 }
1817 return true;
1818}
1819
1821{
1822 yarp::os::idl::WireWriter writer(connection);
1823 return write(writer);
1824}
1825
1827{
1828 yarp::os::idl::WireReader reader(connection);
1829 return read(reader);
1830}
1831
1833{
1834 if (!writer.isNull()) {
1835 if (!writer.writeListHeader(s_reply_len)) {
1836 return false;
1837 }
1838 if (!writer.write(return_helper)) {
1839 return false;
1840 }
1841 }
1842 return true;
1843}
1844
1846{
1847 if (!reader.readListReturn()) {
1848 return false;
1849 }
1850 if (reader.noMore()) {
1851 reader.fail();
1852 return false;
1853 }
1854 if (!reader.read(return_helper)) {
1855 reader.fail();
1856 return false;
1857 }
1858 return true;
1859}
1860
1865
1866// Constructor
1868{
1869 yarp().setOwner(*this);
1870}
1871
1873{
1874 if (!yarp().canWrite()) {
1876 }
1878 bool ok = yarp().write(helper, helper);
1879 return ok ? helper.reply.return_helper : return_set_language{};
1880}
1881
1883{
1884 if (!yarp().canWrite()) {
1886 }
1888 bool ok = yarp().write(helper, helper);
1889 return ok ? helper.reply.return_helper : return_get_language{};
1890}
1891
1893{
1894 if (!yarp().canWrite()) {
1895 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_set_voice_helper::s_prototype);
1896 }
1898 bool ok = yarp().write(helper, helper);
1899 return ok ? helper.reply.return_helper : return_set_voice{};
1900}
1901
1903{
1904 if (!yarp().canWrite()) {
1905 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_get_voice_helper::s_prototype);
1906 }
1908 bool ok = yarp().write(helper, helper);
1909 return ok ? helper.reply.return_helper : return_get_voice{};
1910}
1911
1913{
1914 if (!yarp().canWrite()) {
1915 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_set_speed_helper::s_prototype);
1916 }
1918 bool ok = yarp().write(helper, helper);
1919 return ok ? helper.reply.return_helper : return_set_speed{};
1920}
1921
1923{
1924 if (!yarp().canWrite()) {
1925 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_get_speed_helper::s_prototype);
1926 }
1928 bool ok = yarp().write(helper, helper);
1929 return ok ? helper.reply.return_helper : return_get_speed{};
1930}
1931
1933{
1934 if (!yarp().canWrite()) {
1935 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_set_pitch_helper::s_prototype);
1936 }
1938 bool ok = yarp().write(helper, helper);
1939 return ok ? helper.reply.return_helper : return_set_pitch{};
1940}
1941
1943{
1944 if (!yarp().canWrite()) {
1945 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_get_pitch_helper::s_prototype);
1946 }
1948 bool ok = yarp().write(helper, helper);
1949 return ok ? helper.reply.return_helper : return_get_pitch{};
1950}
1951
1953{
1954 if (!yarp().canWrite()) {
1955 yError("Missing server method '%s'?", ISpeechSynthesizerMsgs_synthesize_helper::s_prototype);
1956 }
1958 bool ok = yarp().write(helper, helper);
1959 return ok ? helper.reply.return_helper : return_synthesize{};
1960}
1961
1962// help method
1963std::vector<std::string> ISpeechSynthesizerMsgs::help(const std::string& functionName)
1964{
1965 bool showAll = (functionName == "--all");
1966 std::vector<std::string> helpString;
1967 if (showAll) {
1968 helpString.emplace_back("*** Available commands:");
1971 helpString.emplace_back(ISpeechSynthesizerMsgs_set_voice_helper::s_tag);
1972 helpString.emplace_back(ISpeechSynthesizerMsgs_get_voice_helper::s_tag);
1973 helpString.emplace_back(ISpeechSynthesizerMsgs_set_speed_helper::s_tag);
1974 helpString.emplace_back(ISpeechSynthesizerMsgs_get_speed_helper::s_tag);
1975 helpString.emplace_back(ISpeechSynthesizerMsgs_set_pitch_helper::s_tag);
1976 helpString.emplace_back(ISpeechSynthesizerMsgs_get_pitch_helper::s_tag);
1977 helpString.emplace_back(ISpeechSynthesizerMsgs_synthesize_helper::s_tag);
1978 helpString.emplace_back("help");
1979 } else {
1982 }
1985 }
1988 }
1991 }
1994 }
1997 }
2000 }
2003 }
2006 }
2007 if (functionName == "help") {
2008 helpString.emplace_back("std::vector<std::string> help(const std::string& functionName = \"--all\")");
2009 helpString.emplace_back("Return list of available commands, or help message for a specific function");
2010 helpString.emplace_back("@param functionName name of command for which to get a detailed description. If none or '--all' is provided, print list of available commands");
2011 helpString.emplace_back("@return list of strings (one string per line)");
2012 }
2013 }
2014 if (helpString.empty()) {
2015 helpString.emplace_back("Command not found");
2016 }
2017 return helpString;
2018}
2019
2020// read from ConnectionReader
2022{
2023 constexpr size_t max_tag_len = 2;
2024 size_t tag_len = 1;
2025
2026 yarp::os::idl::WireReader reader(connection);
2027 reader.expectAccept();
2028 if (!reader.readListHeader()) {
2029 reader.fail();
2030 return false;
2031 }
2032
2033 std::string tag = reader.readTag(1);
2034 bool direct = (tag == "__direct__");
2035 if (direct) {
2036 tag = reader.readTag(1);
2037 }
2038 while (tag_len <= max_tag_len && !reader.isError()) {
2041 if (!helper.cmd.readArgs(reader)) {
2042 return false;
2043 }
2044
2045 helper.call(this);
2046
2047 yarp::os::idl::WireWriter writer(reader);
2048 if (!helper.reply.write(writer)) {
2049 return false;
2050 }
2051 reader.accept();
2052 return true;
2053 }
2056 if (!helper.cmd.readArgs(reader)) {
2057 return false;
2058 }
2059
2060 helper.call(this);
2061
2062 yarp::os::idl::WireWriter writer(reader);
2063 if (!helper.reply.write(writer)) {
2064 return false;
2065 }
2066 reader.accept();
2067 return true;
2068 }
2071 if (!helper.cmd.readArgs(reader)) {
2072 return false;
2073 }
2074
2075 helper.call(this);
2076
2077 yarp::os::idl::WireWriter writer(reader);
2078 if (!helper.reply.write(writer)) {
2079 return false;
2080 }
2081 reader.accept();
2082 return true;
2083 }
2086 if (!helper.cmd.readArgs(reader)) {
2087 return false;
2088 }
2089
2090 helper.call(this);
2091
2092 yarp::os::idl::WireWriter writer(reader);
2093 if (!helper.reply.write(writer)) {
2094 return false;
2095 }
2096 reader.accept();
2097 return true;
2098 }
2101 if (!helper.cmd.readArgs(reader)) {
2102 return false;
2103 }
2104
2105 helper.call(this);
2106
2107 yarp::os::idl::WireWriter writer(reader);
2108 if (!helper.reply.write(writer)) {
2109 return false;
2110 }
2111 reader.accept();
2112 return true;
2113 }
2116 if (!helper.cmd.readArgs(reader)) {
2117 return false;
2118 }
2119
2120 helper.call(this);
2121
2122 yarp::os::idl::WireWriter writer(reader);
2123 if (!helper.reply.write(writer)) {
2124 return false;
2125 }
2126 reader.accept();
2127 return true;
2128 }
2131 if (!helper.cmd.readArgs(reader)) {
2132 return false;
2133 }
2134
2135 helper.call(this);
2136
2137 yarp::os::idl::WireWriter writer(reader);
2138 if (!helper.reply.write(writer)) {
2139 return false;
2140 }
2141 reader.accept();
2142 return true;
2143 }
2146 if (!helper.cmd.readArgs(reader)) {
2147 return false;
2148 }
2149
2150 helper.call(this);
2151
2152 yarp::os::idl::WireWriter writer(reader);
2153 if (!helper.reply.write(writer)) {
2154 return false;
2155 }
2156 reader.accept();
2157 return true;
2158 }
2161 if (!helper.cmd.readArgs(reader)) {
2162 return false;
2163 }
2164
2165 helper.call(this);
2166
2167 yarp::os::idl::WireWriter writer(reader);
2168 if (!helper.reply.write(writer)) {
2169 return false;
2170 }
2171 reader.accept();
2172 return true;
2173 }
2174 if (tag == "help") {
2175 std::string functionName;
2176 if (!reader.readString(functionName)) {
2177 functionName = "--all";
2178 }
2179 auto help_strings = help(functionName);
2180 yarp::os::idl::WireWriter writer(reader);
2181 if (!writer.isNull()) {
2182 if (!writer.writeListHeader(2)) {
2183 return false;
2184 }
2185 if (!writer.writeTag("many", 1, 0)) {
2186 return false;
2187 }
2188 if (!writer.writeListBegin(0, help_strings.size())) {
2189 return false;
2190 }
2191 for (const auto& help_string : help_strings) {
2192 if (!writer.writeString(help_string)) {
2193 return false;
2194 }
2195 }
2196 if (!writer.writeListEnd()) {
2197 return false;
2198 }
2199 }
2200 reader.accept();
2201 return true;
2202 }
2203 if (reader.noMore()) {
2204 reader.fail();
2205 return false;
2206 }
2207 std::string next_tag = reader.readTag(1);
2208 if (next_tag.empty()) {
2209 break;
2210 }
2211 tag.append("_").append(next_tag);
2212 tag_len = std::count(tag.begin(), tag.end(), '_') + 1;
2213 }
2214 return false;
2215}
#define yError(...)
Definition Log.h:361
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_set_language(*)(const std::string &) funcptr_t
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_set_pitch(*)(const double) funcptr_t
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_set_speed(*)(const double) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_set_voice(*)(const std::string &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_synthesize(*)(const std::string &) funcptr_t
virtual return_set_speed set_speed(const double speed)
virtual return_get_speed get_speed()
virtual return_set_pitch set_pitch(const double pitch)
virtual return_set_voice set_voice(const std::string &language)
virtual return_synthesize synthesize(const std::string &text)
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual return_get_pitch get_pitch()
virtual return_get_language get_language()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual return_get_voice get_voice()
virtual return_set_language set_language(const std::string &language)
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition Portable.h:25
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
Definition WireReader.h:27
bool readString(std::string &str, bool *is_vocab=nullptr)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool read(WirePortable &obj)
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
Definition WireWriter.h:28
bool write(const WirePortable &obj) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListBegin(int tag, size_t len) const
The main, catch-all namespace for YARP.
Definition dirs.h:16