YARP
Yet Another Robot Platform
FakeBatteryService.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 <FakeBatteryService.h>
12 
13 #include <yarp/os/idl/WireTypes.h>
14 
16  public yarp::os::Portable
17 {
18 public:
19  explicit FakeBatteryService_setBatteryVoltage_helper(const double voltage);
20  bool write(yarp::os::ConnectionWriter& connection) const override;
21  bool read(yarp::os::ConnectionReader& connection) override;
22 
23  double m_voltage;
24 };
25 
27  m_voltage{voltage}
28 {
29 }
30 
32 {
33  yarp::os::idl::WireWriter writer(connection);
34  if (!writer.writeListHeader(2)) {
35  return false;
36  }
37  if (!writer.writeTag("setBatteryVoltage", 1, 1)) {
38  return false;
39  }
40  if (!writer.writeFloat64(m_voltage)) {
41  return false;
42  }
43  return true;
44 }
45 
47 {
48  YARP_UNUSED(connection);
49  return true;
50 }
51 
53  public yarp::os::Portable
54 {
55 public:
56  explicit FakeBatteryService_setBatteryCurrent_helper(const double current);
57  bool write(yarp::os::ConnectionWriter& connection) const override;
58  bool read(yarp::os::ConnectionReader& connection) override;
59 
60  double m_current;
61 };
62 
64  m_current{current}
65 {
66 }
67 
69 {
70  yarp::os::idl::WireWriter writer(connection);
71  if (!writer.writeListHeader(2)) {
72  return false;
73  }
74  if (!writer.writeTag("setBatteryCurrent", 1, 1)) {
75  return false;
76  }
77  if (!writer.writeFloat64(m_current)) {
78  return false;
79  }
80  return true;
81 }
82 
84 {
85  YARP_UNUSED(connection);
86  return true;
87 }
88 
90  public yarp::os::Portable
91 {
92 public:
93  explicit FakeBatteryService_setBatteryCharge_helper(const double charge);
94  bool write(yarp::os::ConnectionWriter& connection) const override;
95  bool read(yarp::os::ConnectionReader& connection) override;
96 
97  double m_charge;
98 };
99 
101  m_charge{charge}
102 {
103 }
104 
106 {
107  yarp::os::idl::WireWriter writer(connection);
108  if (!writer.writeListHeader(2)) {
109  return false;
110  }
111  if (!writer.writeTag("setBatteryCharge", 1, 1)) {
112  return false;
113  }
114  if (!writer.writeFloat64(m_charge)) {
115  return false;
116  }
117  return true;
118 }
119 
121 {
122  YARP_UNUSED(connection);
123  return true;
124 }
125 
127  public yarp::os::Portable
128 {
129 public:
130  explicit FakeBatteryService_setBatteryInfo_helper(const std::string& info);
131  bool write(yarp::os::ConnectionWriter& connection) const override;
132  bool read(yarp::os::ConnectionReader& connection) override;
133 
134  std::string m_info;
135 };
136 
138  m_info{info}
139 {
140 }
141 
143 {
144  yarp::os::idl::WireWriter writer(connection);
145  if (!writer.writeListHeader(2)) {
146  return false;
147  }
148  if (!writer.writeTag("setBatteryInfo", 1, 1)) {
149  return false;
150  }
151  if (!writer.writeString(m_info)) {
152  return false;
153  }
154  return true;
155 }
156 
158 {
159  YARP_UNUSED(connection);
160  return true;
161 }
162 
164  public yarp::os::Portable
165 {
166 public:
167  explicit FakeBatteryService_setBatteryTemperature_helper(const double temperature);
168  bool write(yarp::os::ConnectionWriter& connection) const override;
169  bool read(yarp::os::ConnectionReader& connection) override;
170 
172 };
173 
175  m_temperature{temperature}
176 {
177 }
178 
180 {
181  yarp::os::idl::WireWriter writer(connection);
182  if (!writer.writeListHeader(2)) {
183  return false;
184  }
185  if (!writer.writeTag("setBatteryTemperature", 1, 1)) {
186  return false;
187  }
188  if (!writer.writeFloat64(m_temperature)) {
189  return false;
190  }
191  return true;
192 }
193 
195 {
196  YARP_UNUSED(connection);
197  return true;
198 }
199 
201  public yarp::os::Portable
202 {
203 public:
205  bool write(yarp::os::ConnectionWriter& connection) const override;
206  bool read(yarp::os::ConnectionReader& connection) override;
207 
208  thread_local static double s_return_helper;
209 };
210 
212 
214 {
215  s_return_helper = {};
216 }
217 
219 {
220  yarp::os::idl::WireWriter writer(connection);
221  if (!writer.writeListHeader(1)) {
222  return false;
223  }
224  if (!writer.writeTag("getBatteryVoltage", 1, 1)) {
225  return false;
226  }
227  return true;
228 }
229 
231 {
232  yarp::os::idl::WireReader reader(connection);
233  if (!reader.readListReturn()) {
234  return false;
235  }
236  if (!reader.readFloat64(s_return_helper)) {
237  reader.fail();
238  return false;
239  }
240  return true;
241 }
242 
244  public yarp::os::Portable
245 {
246 public:
248  bool write(yarp::os::ConnectionWriter& connection) const override;
249  bool read(yarp::os::ConnectionReader& connection) override;
250 
251  thread_local static double s_return_helper;
252 };
253 
255 
257 {
258  s_return_helper = {};
259 }
260 
262 {
263  yarp::os::idl::WireWriter writer(connection);
264  if (!writer.writeListHeader(1)) {
265  return false;
266  }
267  if (!writer.writeTag("getBatteryCurrent", 1, 1)) {
268  return false;
269  }
270  return true;
271 }
272 
274 {
275  yarp::os::idl::WireReader reader(connection);
276  if (!reader.readListReturn()) {
277  return false;
278  }
279  if (!reader.readFloat64(s_return_helper)) {
280  reader.fail();
281  return false;
282  }
283  return true;
284 }
285 
287  public yarp::os::Portable
288 {
289 public:
291  bool write(yarp::os::ConnectionWriter& connection) const override;
292  bool read(yarp::os::ConnectionReader& connection) override;
293 
294  thread_local static double s_return_helper;
295 };
296 
298 
300 {
301  s_return_helper = {};
302 }
303 
305 {
306  yarp::os::idl::WireWriter writer(connection);
307  if (!writer.writeListHeader(1)) {
308  return false;
309  }
310  if (!writer.writeTag("getBatteryCharge", 1, 1)) {
311  return false;
312  }
313  return true;
314 }
315 
317 {
318  yarp::os::idl::WireReader reader(connection);
319  if (!reader.readListReturn()) {
320  return false;
321  }
322  if (!reader.readFloat64(s_return_helper)) {
323  reader.fail();
324  return false;
325  }
326  return true;
327 }
328 
330  public yarp::os::Portable
331 {
332 public:
334  bool write(yarp::os::ConnectionWriter& connection) const override;
335  bool read(yarp::os::ConnectionReader& connection) override;
336 
337  thread_local static std::string s_return_helper;
338 };
339 
341 
343 {
344  s_return_helper = {};
345 }
346 
348 {
349  yarp::os::idl::WireWriter writer(connection);
350  if (!writer.writeListHeader(1)) {
351  return false;
352  }
353  if (!writer.writeTag("getBatteryStatus", 1, 1)) {
354  return false;
355  }
356  return true;
357 }
358 
360 {
361  yarp::os::idl::WireReader reader(connection);
362  if (!reader.readListReturn()) {
363  return false;
364  }
365  if (!reader.readString(s_return_helper)) {
366  reader.fail();
367  return false;
368  }
369  return true;
370 }
371 
373  public yarp::os::Portable
374 {
375 public:
377  bool write(yarp::os::ConnectionWriter& connection) const override;
378  bool read(yarp::os::ConnectionReader& connection) override;
379 
380  thread_local static std::string s_return_helper;
381 };
382 
384 
386 {
387  s_return_helper = {};
388 }
389 
391 {
392  yarp::os::idl::WireWriter writer(connection);
393  if (!writer.writeListHeader(1)) {
394  return false;
395  }
396  if (!writer.writeTag("getBatteryInfo", 1, 1)) {
397  return false;
398  }
399  return true;
400 }
401 
403 {
404  yarp::os::idl::WireReader reader(connection);
405  if (!reader.readListReturn()) {
406  return false;
407  }
408  if (!reader.readString(s_return_helper)) {
409  reader.fail();
410  return false;
411  }
412  return true;
413 }
414 
416  public yarp::os::Portable
417 {
418 public:
420  bool write(yarp::os::ConnectionWriter& connection) const override;
421  bool read(yarp::os::ConnectionReader& connection) override;
422 
423  thread_local static double s_return_helper;
424 };
425 
427 
429 {
430  s_return_helper = {};
431 }
432 
434 {
435  yarp::os::idl::WireWriter writer(connection);
436  if (!writer.writeListHeader(1)) {
437  return false;
438  }
439  if (!writer.writeTag("getBatteryTemperature", 1, 1)) {
440  return false;
441  }
442  return true;
443 }
444 
446 {
447  yarp::os::idl::WireReader reader(connection);
448  if (!reader.readListReturn()) {
449  return false;
450  }
451  if (!reader.readFloat64(s_return_helper)) {
452  reader.fail();
453  return false;
454  }
455  return true;
456 }
457 
458 // Constructor
460 {
461  yarp().setOwner(*this);
462 }
463 
464 void FakeBatteryService::setBatteryVoltage(const double voltage)
465 {
467  if (!yarp().canWrite()) {
468  yError("Missing server method '%s'?", "void FakeBatteryService::setBatteryVoltage(const double voltage)");
469  }
470  yarp().write(helper);
471 }
472 
473 void FakeBatteryService::setBatteryCurrent(const double current)
474 {
476  if (!yarp().canWrite()) {
477  yError("Missing server method '%s'?", "void FakeBatteryService::setBatteryCurrent(const double current)");
478  }
479  yarp().write(helper);
480 }
481 
482 void FakeBatteryService::setBatteryCharge(const double charge)
483 {
485  if (!yarp().canWrite()) {
486  yError("Missing server method '%s'?", "void FakeBatteryService::setBatteryCharge(const double charge)");
487  }
488  yarp().write(helper);
489 }
490 
491 void FakeBatteryService::setBatteryInfo(const std::string& info)
492 {
494  if (!yarp().canWrite()) {
495  yError("Missing server method '%s'?", "void FakeBatteryService::setBatteryInfo(const std::string& info)");
496  }
497  yarp().write(helper);
498 }
499 
500 void FakeBatteryService::setBatteryTemperature(const double temperature)
501 {
503  if (!yarp().canWrite()) {
504  yError("Missing server method '%s'?", "void FakeBatteryService::setBatteryTemperature(const double temperature)");
505  }
506  yarp().write(helper);
507 }
508 
510 {
512  if (!yarp().canWrite()) {
513  yError("Missing server method '%s'?", "double FakeBatteryService::getBatteryVoltage()");
514  }
515  bool ok = yarp().write(helper, helper);
517 }
518 
520 {
522  if (!yarp().canWrite()) {
523  yError("Missing server method '%s'?", "double FakeBatteryService::getBatteryCurrent()");
524  }
525  bool ok = yarp().write(helper, helper);
527 }
528 
530 {
532  if (!yarp().canWrite()) {
533  yError("Missing server method '%s'?", "double FakeBatteryService::getBatteryCharge()");
534  }
535  bool ok = yarp().write(helper, helper);
537 }
538 
540 {
542  if (!yarp().canWrite()) {
543  yError("Missing server method '%s'?", "std::string FakeBatteryService::getBatteryStatus()");
544  }
545  bool ok = yarp().write(helper, helper);
547 }
548 
550 {
552  if (!yarp().canWrite()) {
553  yError("Missing server method '%s'?", "std::string FakeBatteryService::getBatteryInfo()");
554  }
555  bool ok = yarp().write(helper, helper);
557 }
558 
560 {
562  if (!yarp().canWrite()) {
563  yError("Missing server method '%s'?", "double FakeBatteryService::getBatteryTemperature()");
564  }
565  bool ok = yarp().write(helper, helper);
567 }
568 
569 // help method
570 std::vector<std::string> FakeBatteryService::help(const std::string& functionName)
571 {
572  bool showAll = (functionName == "--all");
573  std::vector<std::string> helpString;
574  if (showAll) {
575  helpString.emplace_back("*** Available commands:");
576  helpString.emplace_back("setBatteryVoltage");
577  helpString.emplace_back("setBatteryCurrent");
578  helpString.emplace_back("setBatteryCharge");
579  helpString.emplace_back("setBatteryInfo");
580  helpString.emplace_back("setBatteryTemperature");
581  helpString.emplace_back("getBatteryVoltage");
582  helpString.emplace_back("getBatteryCurrent");
583  helpString.emplace_back("getBatteryCharge");
584  helpString.emplace_back("getBatteryStatus");
585  helpString.emplace_back("getBatteryInfo");
586  helpString.emplace_back("getBatteryTemperature");
587  helpString.emplace_back("help");
588  } else {
589  if (functionName == "setBatteryVoltage") {
590  helpString.emplace_back("void setBatteryVoltage(const double voltage) ");
591  }
592  if (functionName == "setBatteryCurrent") {
593  helpString.emplace_back("void setBatteryCurrent(const double current) ");
594  }
595  if (functionName == "setBatteryCharge") {
596  helpString.emplace_back("void setBatteryCharge(const double charge) ");
597  }
598  if (functionName == "setBatteryInfo") {
599  helpString.emplace_back("void setBatteryInfo(const std::string& info) ");
600  }
601  if (functionName == "setBatteryTemperature") {
602  helpString.emplace_back("void setBatteryTemperature(const double temperature) ");
603  }
604  if (functionName == "getBatteryVoltage") {
605  helpString.emplace_back("double getBatteryVoltage() ");
606  }
607  if (functionName == "getBatteryCurrent") {
608  helpString.emplace_back("double getBatteryCurrent() ");
609  }
610  if (functionName == "getBatteryCharge") {
611  helpString.emplace_back("double getBatteryCharge() ");
612  }
613  if (functionName == "getBatteryStatus") {
614  helpString.emplace_back("std::string getBatteryStatus() ");
615  }
616  if (functionName == "getBatteryInfo") {
617  helpString.emplace_back("std::string getBatteryInfo() ");
618  }
619  if (functionName == "getBatteryTemperature") {
620  helpString.emplace_back("double getBatteryTemperature() ");
621  }
622  if (functionName == "help") {
623  helpString.emplace_back("std::vector<std::string> help(const std::string& functionName = \"--all\")");
624  helpString.emplace_back("Return list of available commands, or help message for a specific function");
625  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");
626  helpString.emplace_back("@return list of strings (one string per line)");
627  }
628  }
629  if (helpString.empty()) {
630  helpString.emplace_back("Command not found");
631  }
632  return helpString;
633 }
634 
635 // read from ConnectionReader
637 {
638  yarp::os::idl::WireReader reader(connection);
639  reader.expectAccept();
640  if (!reader.readListHeader()) {
641  reader.fail();
642  return false;
643  }
644 
645  std::string tag = reader.readTag();
646  bool direct = (tag == "__direct__");
647  if (direct) {
648  tag = reader.readTag();
649  }
650  while (!reader.isError()) {
651  if (tag == "setBatteryVoltage") {
652  double voltage;
653  if (!reader.readFloat64(voltage)) {
654  reader.fail();
655  return false;
656  }
657  if (!direct) {
659  yarp().callback(helper, *this, "__direct__");
660  } else {
661  setBatteryVoltage(voltage);
662  }
663  yarp::os::idl::WireWriter writer(reader);
664  if (!writer.isNull()) {
665  if (!writer.writeOnewayResponse()) {
666  return false;
667  }
668  }
669  reader.accept();
670  return true;
671  }
672  if (tag == "setBatteryCurrent") {
673  double current;
674  if (!reader.readFloat64(current)) {
675  reader.fail();
676  return false;
677  }
678  if (!direct) {
680  yarp().callback(helper, *this, "__direct__");
681  } else {
682  setBatteryCurrent(current);
683  }
684  yarp::os::idl::WireWriter writer(reader);
685  if (!writer.isNull()) {
686  if (!writer.writeOnewayResponse()) {
687  return false;
688  }
689  }
690  reader.accept();
691  return true;
692  }
693  if (tag == "setBatteryCharge") {
694  double charge;
695  if (!reader.readFloat64(charge)) {
696  reader.fail();
697  return false;
698  }
699  if (!direct) {
701  yarp().callback(helper, *this, "__direct__");
702  } else {
703  setBatteryCharge(charge);
704  }
705  yarp::os::idl::WireWriter writer(reader);
706  if (!writer.isNull()) {
707  if (!writer.writeOnewayResponse()) {
708  return false;
709  }
710  }
711  reader.accept();
712  return true;
713  }
714  if (tag == "setBatteryInfo") {
715  std::string info;
716  if (!reader.readString(info)) {
717  reader.fail();
718  return false;
719  }
720  if (!direct) {
722  yarp().callback(helper, *this, "__direct__");
723  } else {
724  setBatteryInfo(info);
725  }
726  yarp::os::idl::WireWriter writer(reader);
727  if (!writer.isNull()) {
728  if (!writer.writeOnewayResponse()) {
729  return false;
730  }
731  }
732  reader.accept();
733  return true;
734  }
735  if (tag == "setBatteryTemperature") {
736  double temperature;
737  if (!reader.readFloat64(temperature)) {
738  reader.fail();
739  return false;
740  }
741  if (!direct) {
743  yarp().callback(helper, *this, "__direct__");
744  } else {
745  setBatteryTemperature(temperature);
746  }
747  yarp::os::idl::WireWriter writer(reader);
748  if (!writer.isNull()) {
749  if (!writer.writeOnewayResponse()) {
750  return false;
751  }
752  }
753  reader.accept();
754  return true;
755  }
756  if (tag == "getBatteryVoltage") {
758  yarp::os::idl::WireWriter writer(reader);
759  if (!writer.isNull()) {
760  if (!writer.writeListHeader(1)) {
761  return false;
762  }
764  return false;
765  }
766  }
767  reader.accept();
768  return true;
769  }
770  if (tag == "getBatteryCurrent") {
772  yarp::os::idl::WireWriter writer(reader);
773  if (!writer.isNull()) {
774  if (!writer.writeListHeader(1)) {
775  return false;
776  }
778  return false;
779  }
780  }
781  reader.accept();
782  return true;
783  }
784  if (tag == "getBatteryCharge") {
786  yarp::os::idl::WireWriter writer(reader);
787  if (!writer.isNull()) {
788  if (!writer.writeListHeader(1)) {
789  return false;
790  }
792  return false;
793  }
794  }
795  reader.accept();
796  return true;
797  }
798  if (tag == "getBatteryStatus") {
800  yarp::os::idl::WireWriter writer(reader);
801  if (!writer.isNull()) {
802  if (!writer.writeListHeader(1)) {
803  return false;
804  }
806  return false;
807  }
808  }
809  reader.accept();
810  return true;
811  }
812  if (tag == "getBatteryInfo") {
814  yarp::os::idl::WireWriter writer(reader);
815  if (!writer.isNull()) {
816  if (!writer.writeListHeader(1)) {
817  return false;
818  }
820  return false;
821  }
822  }
823  reader.accept();
824  return true;
825  }
826  if (tag == "getBatteryTemperature") {
828  yarp::os::idl::WireWriter writer(reader);
829  if (!writer.isNull()) {
830  if (!writer.writeListHeader(1)) {
831  return false;
832  }
834  return false;
835  }
836  }
837  reader.accept();
838  return true;
839  }
840  if (tag == "help") {
841  std::string functionName;
842  if (!reader.readString(functionName)) {
843  functionName = "--all";
844  }
845  auto help_strings = help(functionName);
846  yarp::os::idl::WireWriter writer(reader);
847  if (!writer.isNull()) {
848  if (!writer.writeListHeader(2)) {
849  return false;
850  }
851  if (!writer.writeTag("many", 1, 0)) {
852  return false;
853  }
854  if (!writer.writeListBegin(BOTTLE_TAG_INT32, static_cast<uint32_t>(help_strings.size()))) {
855  return false;
856  }
857  for (const auto& help_string : help_strings) {
858  if (!writer.writeString(help_string)) {
859  return false;
860  }
861  }
862  if (!writer.writeListEnd()) {
863  return false;
864  }
865  }
866  reader.accept();
867  return true;
868  }
869  if (reader.noMore()) {
870  reader.fail();
871  return false;
872  }
873  std::string next_tag = reader.readTag();
874  if (next_tag == "") {
875  break;
876  }
877  tag.append("_").append(next_tag);
878  }
879  return false;
880 }
#define BOTTLE_TAG_INT32
Definition: Bottle.h:21
#define yError(...)
Definition: Log.h:279
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static thread_local std::string s_return_helper
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.
static thread_local std::string s_return_helper
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.
FakeBatteryService_setBatteryCharge_helper(const double charge)
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.
FakeBatteryService_setBatteryCurrent_helper(const double current)
FakeBatteryService_setBatteryInfo_helper(const std::string &info)
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.
FakeBatteryService_setBatteryTemperature_helper(const double temperature)
FakeBatteryService_setBatteryVoltage_helper(const double voltage)
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.
virtual std::string getBatteryInfo()
virtual double getBatteryVoltage()
virtual void setBatteryInfo(const std::string &info)
virtual void setBatteryTemperature(const double temperature)
virtual double getBatteryCharge()
virtual std::string getBatteryStatus()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void setBatteryCharge(const double charge)
virtual void setBatteryVoltage(const double voltage)
virtual double getBatteryCurrent()
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual void setBatteryCurrent(const double current)
virtual double getBatteryTemperature()
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:26
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
Definition: Wire.h:29
IDL-friendly connection reader.
Definition: WireReader.h:30
bool readString(std::string &str, bool *is_vocab=nullptr)
Definition: WireReader.cpp:382
bool readFloat64(yarp::conf::float64_t &x)
Definition: WireReader.cpp:277
IDL-friendly connection writer.
Definition: WireWriter.h:30
bool writeListHeader(int len) const
Definition: WireWriter.cpp:206
bool writeTag(const char *tag, int split, int len) const
Definition: WireWriter.cpp:164
bool writeListBegin(int tag, std::uint32_t len) const
Definition: WireWriter.cpp:227
bool writeFloat64(yarp::conf::float64_t x) const
Definition: WireWriter.cpp:114
bool writeOnewayResponse() const
Definition: WireWriter.cpp:265
bool writeString(const std::string &tag) const
Definition: WireWriter.cpp:189
#define YARP_UNUSED(var)
Definition: api.h:162