70 static constexpr const char*
s_tag{
"setBatteryVoltage"};
74 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryVoltage(const double voltage)"};
75 static constexpr const char*
s_help{
""};
131 static constexpr const char*
s_tag{
"setBatteryCurrent"};
135 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryCurrent(const double current)"};
192 static constexpr const char*
s_tag{
"setBatteryCharge"};
196 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryCharge(const double charge)"};
253 static constexpr const char*
s_tag{
"setBatteryStatus"};
257 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryStatus(const yarp::dev::IBattery::Battery_status status)"};
314 static constexpr const char*
s_tag{
"setBatteryInfo"};
318 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryInfo(const std::string& info)"};
375 static constexpr const char*
s_tag{
"setBatteryTemperature"};
379 static constexpr const char*
s_prototype{
"void FakeBatteryService::setBatteryTemperature(const double temperature)"};
433 static constexpr const char*
s_tag{
"getBatteryVoltage"};
437 static constexpr const char*
s_prototype{
"double FakeBatteryService::getBatteryVoltage()"};
491 static constexpr const char*
s_tag{
"getBatteryCurrent"};
495 static constexpr const char*
s_prototype{
"double FakeBatteryService::getBatteryCurrent()"};
549 static constexpr const char*
s_tag{
"getBatteryCharge"};
553 static constexpr const char*
s_prototype{
"double FakeBatteryService::getBatteryCharge()"};
607 static constexpr const char*
s_tag{
"getBatteryStatus"};
611 static constexpr const char*
s_prototype{
"yarp::dev::IBattery::Battery_status FakeBatteryService::getBatteryStatus()"};
665 static constexpr const char*
s_tag{
"getBatteryStatusString"};
669 static constexpr const char*
s_prototype{
"std::string FakeBatteryService::getBatteryStatusString()"};
723 static constexpr const char*
s_tag{
"getBatteryInfo"};
727 static constexpr const char*
s_prototype{
"std::string FakeBatteryService::getBatteryInfo()"};
781 static constexpr const char*
s_tag{
"getBatteryTemperature"};
785 static constexpr const char*
s_prototype{
"double FakeBatteryService::getBatteryTemperature()"};
816 return write(writer);
831 if (!writeTag(writer)) {
834 if (!writeArgs(writer)) {
858 if (!readTag(reader)) {
861 if (!readArgs(reader)) {
900 return write(writer);
956 return write(writer);
971 if (!writeTag(writer)) {
974 if (!writeArgs(writer)) {
998 if (!readTag(reader)) {
1001 if (!readArgs(reader)) {
1040 return write(writer);
1046 return read(reader);
1096 return write(writer);
1106 return read(reader);
1111 if (!writeTag(writer)) {
1114 if (!writeArgs(writer)) {
1138 if (!readTag(reader)) {
1141 if (!readArgs(reader)) {
1180 return write(writer);
1186 return read(reader);
1236 return write(writer);
1246 return read(reader);
1251 if (!writeTag(writer)) {
1254 if (!writeArgs(writer)) {
1278 if (!readTag(reader)) {
1281 if (!readArgs(reader)) {
1322 return write(writer);
1328 return read(reader);
1378 return write(writer);
1388 return read(reader);
1393 if (!writeTag(writer)) {
1396 if (!writeArgs(writer)) {
1420 if (!readTag(reader)) {
1423 if (!readArgs(reader)) {
1462 return write(writer);
1468 return read(reader);
1508 temperature{temperature}
1518 return write(writer);
1528 return read(reader);
1533 if (!writeTag(writer)) {
1536 if (!writeArgs(writer)) {
1560 if (!readTag(reader)) {
1563 if (!readArgs(reader)) {
1602 return write(writer);
1608 return read(reader);
1648 return write(writer);
1658 return read(reader);
1663 if (!writeTag(writer)) {
1666 if (!writeArgs(writer)) {
1687 if (!readTag(reader)) {
1690 if (!readArgs(reader)) {
1721 return write(writer);
1727 return read(reader);
1781 return write(writer);
1791 return read(reader);
1796 if (!writeTag(writer)) {
1799 if (!writeArgs(writer)) {
1820 if (!readTag(reader)) {
1823 if (!readArgs(reader)) {
1854 return write(writer);
1860 return read(reader);
1914 return write(writer);
1924 return read(reader);
1929 if (!writeTag(writer)) {
1932 if (!writeArgs(writer)) {
1953 if (!readTag(reader)) {
1956 if (!readArgs(reader)) {
1987 return write(writer);
1993 return read(reader);
2047 return write(writer);
2057 return read(reader);
2062 if (!writeTag(writer)) {
2065 if (!writeArgs(writer)) {
2086 if (!readTag(reader)) {
2089 if (!readArgs(reader)) {
2120 return write(writer);
2126 return read(reader);
2182 return write(writer);
2192 return read(reader);
2197 if (!writeTag(writer)) {
2200 if (!writeArgs(writer)) {
2221 if (!readTag(reader)) {
2224 if (!readArgs(reader)) {
2255 return write(writer);
2261 return read(reader);
2315 return write(writer);
2325 return read(reader);
2330 if (!writeTag(writer)) {
2333 if (!writeArgs(writer)) {
2354 if (!readTag(reader)) {
2357 if (!readArgs(reader)) {
2388 return write(writer);
2394 return read(reader);
2448 return write(writer);
2458 return read(reader);
2463 if (!writeTag(writer)) {
2466 if (!writeArgs(writer)) {
2487 if (!readTag(reader)) {
2490 if (!readArgs(reader)) {
2521 return write(writer);
2527 return read(reader);
2567 yarp().setOwner(*
this);
2572 if (!
yarp().canWrite()) {
2576 yarp().write(helper);
2581 if (!
yarp().canWrite()) {
2585 yarp().write(helper);
2590 if (!
yarp().canWrite()) {
2594 yarp().write(helper);
2599 if (!
yarp().canWrite()) {
2603 yarp().write(helper);
2608 if (!
yarp().canWrite()) {
2612 yarp().write(helper);
2617 if (!
yarp().canWrite()) {
2621 yarp().write(helper);
2626 if (!
yarp().canWrite()) {
2630 bool ok =
yarp().write(helper, helper);
2631 return ok ? helper.reply.return_helper :
double{};
2636 if (!
yarp().canWrite()) {
2640 bool ok =
yarp().write(helper, helper);
2641 return ok ? helper.reply.return_helper :
double{};
2646 if (!
yarp().canWrite()) {
2650 bool ok =
yarp().write(helper, helper);
2651 return ok ? helper.reply.return_helper :
double{};
2656 if (!
yarp().canWrite()) {
2660 bool ok =
yarp().write(helper, helper);
2666 if (!
yarp().canWrite()) {
2670 bool ok =
yarp().write(helper, helper);
2671 return ok ? helper.reply.return_helper : std::string{};
2676 if (!
yarp().canWrite()) {
2680 bool ok =
yarp().write(helper, helper);
2681 return ok ? helper.reply.return_helper : std::string{};
2686 if (!
yarp().canWrite()) {
2690 bool ok =
yarp().write(helper, helper);
2691 return ok ? helper.reply.return_helper :
double{};
2697 bool showAll = (functionName ==
"--all");
2698 std::vector<std::string> helpString;
2700 helpString.emplace_back(
"*** Available commands:");
2714 helpString.emplace_back(
"help");
2755 if (functionName ==
"help") {
2756 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
2757 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
2758 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");
2759 helpString.emplace_back(
"@return list of strings (one string per line)");
2762 if (helpString.empty()) {
2763 helpString.emplace_back(
"Command not found");
2771 constexpr size_t max_tag_len = 1;
2781 std::string tag = reader.
readTag(1);
2782 bool direct = (tag ==
"__direct__");
2786 while (tag_len <= max_tag_len && !reader.
isError()) {
2794 yarp().callback(helper, *
this,
"__direct__");
2813 yarp().callback(helper, *
this,
"__direct__");
2832 yarp().callback(helper, *
this,
"__direct__");
2851 yarp().callback(helper, *
this,
"__direct__");
2870 yarp().callback(helper, *
this,
"__direct__");
2889 yarp().callback(helper, *
this,
"__direct__");
3006 if (tag ==
"help") {
3007 std::string functionName;
3009 functionName =
"--all";
3011 auto help_strings = help(functionName);
3017 if (!writer.
writeTag(
"many", 1, 0)) {
3023 for (
const auto& help_string : help_strings) {
3039 std::string next_tag = reader.
readTag(1);
3040 if (next_tag.empty()) {
3043 tag.append(
"_").append(next_tag);
3044 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
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 readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Reply() override=default
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_getBatteryCharge_helper()=default
static constexpr const char * s_help
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
void call(FakeBatteryService *ptr)
static constexpr const char * s_tag
~Command() override=default
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 readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
FakeBatteryService_getBatteryCurrent_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
static constexpr const char * s_help
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
void call(FakeBatteryService *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
bool readTag(yarp::os::idl::WireReader &reader)
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
std::string return_helper
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.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
FakeBatteryService_getBatteryInfo_helper()=default
static constexpr const char * s_tag
static constexpr size_t s_tag_len
std::string(*)() funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
void call(FakeBatteryService *ptr)
static constexpr const char * s_help
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
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 readTag(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
std::string return_helper
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.
void call(FakeBatteryService *ptr)
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
std::string(*)() funcptr_t
FakeBatteryService_getBatteryStatusString_helper()=default
static constexpr const char * s_tag
static constexpr size_t s_tag_len
static constexpr const char * s_help
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::dev::IBattery::Battery_status return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
FakeBatteryService_getBatteryStatus_helper()=default
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
yarp::dev::IBattery::Battery_status(*)() funcptr_t
static constexpr const char * s_tag
void call(FakeBatteryService *ptr)
static constexpr size_t s_cmd_len
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(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.
~Reply() override=default
void call(FakeBatteryService *ptr)
static constexpr const char * s_prototype
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
FakeBatteryService_getBatteryTemperature_helper()=default
static constexpr size_t s_tag_len
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
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
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.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
FakeBatteryService_getBatteryVoltage_helper()=default
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
void call(FakeBatteryService *ptr)
bool readArgs(yarp::os::idl::WireReader &reader)
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 readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
void call(FakeBatteryService *ptr) const
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
FakeBatteryService_setBatteryCharge_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void(*)(const double) funcptr_t
static constexpr const char * s_tag
static constexpr const char * s_help
static constexpr size_t s_cmd_len
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
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.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
void call(FakeBatteryService *ptr) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
void(*)(const double) funcptr_t
FakeBatteryService_setBatteryCurrent_helper()=default
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
static constexpr const char * s_tag
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
void(*)(const std::string &) funcptr_t
void call(FakeBatteryService *ptr) const
static constexpr size_t s_reply_len
static constexpr const char * s_tag
static constexpr const char * s_help
FakeBatteryService_setBatteryInfo_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
yarp::dev::IBattery::Battery_status status
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
FakeBatteryService_setBatteryStatus_helper()=default
void call(FakeBatteryService *ptr) const
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
static constexpr const char * s_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
void(*)(const yarp::dev::IBattery::Battery_status) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(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 writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
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.
static constexpr const char * s_prototype
static constexpr const char * s_help
void(*)(const double) funcptr_t
void call(FakeBatteryService *ptr) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
static constexpr size_t s_reply_len
FakeBatteryService_setBatteryTemperature_helper()=default
static constexpr size_t s_tag_len
static constexpr size_t s_cmd_len
bool readTag(yarp::os::idl::WireReader &reader)
bool readArgs(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 writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
static constexpr const char * s_prototype
void call(FakeBatteryService *ptr) const
FakeBatteryService_setBatteryVoltage_helper()=default
static constexpr size_t s_cmd_len
void(*)(const double) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_reply_len
virtual std::string getBatteryInfo()
virtual void setBatteryStatus(const yarp::dev::IBattery::Battery_status status)
virtual double getBatteryVoltage()
virtual void setBatteryInfo(const std::string &info)
virtual void setBatteryTemperature(const double temperature)
virtual double getBatteryCharge()
virtual yarp::dev::IBattery::Battery_status getBatteryStatus()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void setBatteryCharge(const double charge)
virtual std::string getBatteryStatusString()
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.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
bool readVocab32(yarp::conf::vocab32_t &x)
bool readString(std::string &str, bool *is_vocab=nullptr)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool writeVocab32(yarp::conf::vocab32_t x, bool skip_tag=false) 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 writeOnewayResponse() const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
The main, catch-all namespace for YARP.