46 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
60 if (!helper_proto.read(connection)) {
70 if(!
yarp().canWrite()) {
71 yError(
" Missing server method PortCoreMsgs::getRemoteProtocolVersion");
76 return helper.helper_proto;}
167 static constexpr const char*
s_tag{
"addConnection"};
171 static constexpr const char*
s_prototype{
"return_addConnection PortCoreMsgs::addConnection(const std::string& portname, const std::string& carrier)"};
173 "Add an output connection from this port to another port.\n"
174 "@param portname the destination port of the connection\n"
175 "@param carrier the carrier of the connection, e.g. tcp, udp, fast_tcp (optional, the default carrier is used if empty)\n"
176 "@return success: true if the connection has been added; message: a description of the result"
235 static constexpr const char*
s_tag{
"delConnection"};
239 static constexpr const char*
s_prototype{
"return_delConnection PortCoreMsgs::delConnection(const std::string& portname)"};
241 "Remove all the input and output connections between this port and another port.\n"
242 "@param portname the port at the other end of the connection(s)\n"
243 "@return success: true if at least one connection has been removed; message: a description of the result"
302 static constexpr const char*
s_tag{
"attachPortmonitorOut"};
306 static constexpr const char*
s_prototype{
"bool PortCoreMsgs::attachPortmonitorOut(const std::string& prop)"};
308 "Attach a portmonitor plug-in to the output of this port (it replaces the one previously attached, if any).\n"
309 "@param prop the portmonitor configuration, in yarp::os::Property format, e.g. \"(type dll) (file test_numbers1)\" or \"(context yarpviz) (file portrate)\"\n"
310 "@return true if the portmonitor has been attached"
369 static constexpr const char*
s_tag{
"attachPortmonitorIn"};
373 static constexpr const char*
s_prototype{
"bool PortCoreMsgs::attachPortmonitorIn(const std::string& prop)"};
375 "Attach a portmonitor plug-in to the input of this port (it replaces the one previously attached, if any).\n"
376 "@param prop the portmonitor configuration, in yarp::os::Property format, e.g. \"(type dll) (file test_numbers1)\" or \"(context yarpviz) (file portrate)\"\n"
377 "@return true if the portmonitor has been attached"
431 static constexpr const char*
s_tag{
"detachPortmonitorOut"};
435 static constexpr const char*
s_prototype{
"bool PortCoreMsgs::detachPortmonitorOut()"};
437 "Detach the portmonitor plug-in from the output of this port.\n"
438 "@return true (also if no portmonitor was attached)"
492 static constexpr const char*
s_tag{
"detachPortmonitorIn"};
496 static constexpr const char*
s_prototype{
"bool PortCoreMsgs::detachPortmonitorIn()"};
498 "Detach the portmonitor plug-in from the input of this port.\n"
499 "@return true (also if no portmonitor was attached)"
558 static constexpr const char*
s_tag{
"setPortmonitorParamsOut"};
562 static constexpr const char*
s_prototype{
"return_setPortmonitorParams PortCoreMsgs::setPortmonitorParamsOut(const std::string& params)"};
564 "Set the parameters of the portmonitor plug-in attached to the output of this port.\n"
565 "@param params the parameters, in yarp::os::Property format, e.g. \"(log_save 1)\"; their meaning depends on the portmonitor\n"
566 "@return success: false if no portmonitor is attached; message: a description of the error (if any)"
625 static constexpr const char*
s_tag{
"setPortmonitorParamsIn"};
629 static constexpr const char*
s_prototype{
"return_setPortmonitorParams PortCoreMsgs::setPortmonitorParamsIn(const std::string& params)"};
631 "Set the parameters of the portmonitor plug-in attached to the input of this port.\n"
632 "@param params the parameters, in yarp::os::Property format, e.g. \"(log_save 1)\"; their meaning depends on the portmonitor\n"
633 "@return success: false if no portmonitor is attached; message: a description of the error (if any)"
687 static constexpr const char*
s_tag{
"getPortmonitorParamsOut"};
691 static constexpr const char*
s_prototype{
"return_getPortmonitorParams PortCoreMsgs::getPortmonitorParamsOut()"};
693 "Get the parameters of the portmonitor plug-in attached to the output of this port.\n"
694 "@return success: false if no portmonitor is attached; params: the parameters, in yarp::os::Property format; message: a description of the error (if any)"
748 static constexpr const char*
s_tag{
"getPortmonitorParamsIn"};
752 static constexpr const char*
s_prototype{
"return_getPortmonitorParams PortCoreMsgs::getPortmonitorParamsIn()"};
754 "Get the parameters of the portmonitor plug-in attached to the input of this port.\n"
755 "@return success: false if no portmonitor is attached; params: the parameters, in yarp::os::Property format; message: a description of the error (if any)"
815 static constexpr const char*
s_tag{
"setConnectionParamsOut"};
819 static constexpr const char*
s_prototype{
"return_setConnectionParams PortCoreMsgs::setConnectionParamsOut(const std::string& portname, const std::string& params)"};
821 "Set the carrier parameters of the output connection going from this port to another port.\n"
822 "@param portname the destination port of the connection\n"
823 "@param params the parameters, in yarp::os::Property format; their meaning depends on the carrier of the connection\n"
824 "@return success: false if there is no such connection; message: a description of the result"
884 static constexpr const char*
s_tag{
"setConnectionParamsIn"};
888 static constexpr const char*
s_prototype{
"return_setConnectionParams PortCoreMsgs::setConnectionParamsIn(const std::string& portname, const std::string& params)"};
890 "Set the carrier parameters of the input connection coming from another port to this port.\n"
891 "@param portname the source port of the connection\n"
892 "@param params the parameters, in yarp::os::Property format; their meaning depends on the carrier of the connection\n"
893 "@return success: false if there is no such connection; message: a description of the result"
952 static constexpr const char*
s_tag{
"getConnectionParamsOut"};
956 static constexpr const char*
s_prototype{
"return_getConnectionParams PortCoreMsgs::getConnectionParamsOut(const std::string& portname)"};
958 "Get the carrier parameters of the output connection going from this port to another port.\n"
959 "@param portname the destination port of the connection\n"
960 "@return success: false if there is no such connection; params: the parameters, in yarp::os::Property format; message: a description of the error (if any)"
1019 static constexpr const char*
s_tag{
"getConnectionParamsIn"};
1023 static constexpr const char*
s_prototype{
"return_getConnectionParams PortCoreMsgs::getConnectionParamsIn(const std::string& portname)"};
1025 "Get the carrier parameters of the input connection coming from another port to this port.\n"
1026 "@param portname the source port of the connection\n"
1027 "@return success: false if there is no such connection; params: the parameters, in yarp::os::Property format; message: a description of the error (if any)"
1081 static constexpr const char*
s_tag{
"listConnectionsIn"};
1085 static constexpr const char*
s_prototype{
"return_listConnections PortCoreMsgs::listConnectionsIn()"};
1087 "List the ports connected to the input of this port.\n"
1088 "@return connections: the names of the source ports of the input connections"
1142 static constexpr const char*
s_tag{
"listConnectionsOut"};
1146 static constexpr const char*
s_prototype{
"return_listConnections PortCoreMsgs::listConnectionsOut()"};
1148 "List the ports connected to the output of this port.\n"
1149 "@return connections: the names of the destination ports of the output connections"
1208 static constexpr const char*
s_tag{
"getConnectionInfoIn"};
1212 static constexpr const char*
s_prototype{
"return_getConnectionInfo PortCoreMsgs::getConnectionInfoIn(const std::string& portname)"};
1214 "Give details about the input connection coming from another port to this port.\n"
1215 "@param portname the source port of the connection\n"
1216 "@return found: false if there is no such connection; from_port, to_port: the ends of the connection; carrier: the carrier of the connection; connectionless: true if the carrier is connectionless (e.g. udp); push: false if the carrier is reversed (pull)"
1275 static constexpr const char*
s_tag{
"getConnectionInfoOut"};
1279 static constexpr const char*
s_prototype{
"return_getConnectionInfo PortCoreMsgs::getConnectionInfoOut(const std::string& portname)"};
1281 "Give details about the output connection going from this port to another port.\n"
1282 "@param portname the destination port of the connection\n"
1283 "@return found: false if there is no such connection; from_port, to_port: the ends of the connection; carrier: the carrier of the connection; connectionless: true if the carrier is connectionless (e.g. udp); push: false if the carrier is reversed (pull)"
1337 static constexpr const char*
s_tag{
"getAdminProtocolVersion"};
1341 static constexpr const char*
s_prototype{
"return_getAdminProtocolVersion PortCoreMsgs::getAdminProtocolVersion()"};
1343 "Report the version of the administrative protocol of this port (it is distinct from the version of the YARP library).\n"
1344 "@return version_major, version_minor, version_patch: the version of the protocol"
1398 static constexpr const char*
s_tag{
"getPortInfo"};
1402 static constexpr const char*
s_prototype{
"return_getPortInfo PortCoreMsgs::getPortInfo()"};
1404 "Give information about this port, its main thread, and the process and the platform on which it is running.\n"
1405 "@return process: name, arguments, scheduling policy and priority, pid of the process; platform: name, distribution, release, codename, kernel, environment variables of the operating system; thread: tid, priority, policy of the main thread of the port; port: is_input, is_output, is_rpc, type, hostname of the port"
1464 static constexpr const char*
s_tag{
"getConnectionQosIn"};
1468 static constexpr const char*
s_prototype{
"return_getConnectionQos PortCoreMsgs::getConnectionQosIn(const std::string& portname)"};
1470 "Get the quality of service of the input connection coming from another port to this port.\n"
1471 "@param portname the source port of the connection\n"
1472 "@return found: false if there is no such connection; thread: tid, scheduling priority and policy of the thread which handles the connection; qos_tos: the type of service of the packets of the connection (-1 if not available)"
1531 static constexpr const char*
s_tag{
"getConnectionQosOut"};
1535 static constexpr const char*
s_prototype{
"return_getConnectionQos PortCoreMsgs::getConnectionQosOut(const std::string& portname)"};
1537 "Get the quality of service of the output connection going from this port to another port.\n"
1538 "@param portname the destination port of the connection\n"
1539 "@return found: false if there is no such connection; thread: tid, scheduling priority and policy of the thread which handles the connection; qos_tos: the type of service of the packets of the connection (-1 if not available)"
1601 static constexpr const char*
s_tag{
"setConnectionQosIn"};
1605 static constexpr const char*
s_prototype{
"return_setConnectionQos PortCoreMsgs::setConnectionQosIn(const std::string& portname, const std::int32_t scheduler_priority, const std::int32_t scheduler_policy, const std::int32_t qos_tos)"};
1607 "Set the quality of service of the input connection coming from another port to this port.\n"
1608 "@param portname the source port of the connection\n"
1609 "@param scheduler_priority the scheduling priority of the thread which handles the connection (OS specific; -1 leaves the scheduling of the thread unchanged)\n"
1610 "@param scheduler_policy the scheduling policy of the thread which handles the connection (OS specific, e.g. on Linux 0 = SCHED_OTHER, 1 = SCHED_FIFO, 2 = SCHED_RR)\n"
1611 "@param qos_tos the type of service of the packets of the connection, e.g. LOW = 40, NORMAL = 0, HIGH = 144, CRITICAL = 176 (a negative value leaves it unchanged)\n"
1612 "@return success: false if there is no such connection or if the qos could not be set; message: a description of the error (if any)"
1674 static constexpr const char*
s_tag{
"setConnectionQosOut"};
1678 static constexpr const char*
s_prototype{
"return_setConnectionQos PortCoreMsgs::setConnectionQosOut(const std::string& portname, const std::int32_t scheduler_priority, const std::int32_t scheduler_policy, const std::int32_t qos_tos)"};
1680 "Set the quality of service of the output connection going from this port to another port.\n"
1681 "@param portname the destination port of the connection\n"
1682 "@param scheduler_priority the scheduling priority of the thread which handles the connection (OS specific; -1 leaves the scheduling of the thread unchanged)\n"
1683 "@param scheduler_policy the scheduling policy of the thread which handles the connection (OS specific, e.g. on Linux 0 = SCHED_OTHER, 1 = SCHED_FIFO, 2 = SCHED_RR)\n"
1684 "@param qos_tos the type of service of the packets of the connection, e.g. LOW = 40, NORMAL = 0, HIGH = 144, CRITICAL = 176 (a negative value leaves it unchanged)\n"
1685 "@return success: false if there is no such connection or if the qos could not be set; message: a description of the error (if any)"
1745 static constexpr const char*
s_tag{
"setProcessScheduling"};
1749 static constexpr const char*
s_prototype{
"bool PortCoreMsgs::setProcessScheduling(const std::int32_t priority, const std::int32_t policy)"};
1751 "Set the scheduling parameters of all the threads of the process which owns this port.\n"
1752 "@param priority the scheduling priority (OS specific)\n"
1753 "@param policy the scheduling policy (OS specific, e.g. on Linux 0 = SCHED_OTHER, 1 = SCHED_FIFO, 2 = SCHED_RR)\n"
1754 "@return true if the scheduling parameters have been set"
1760 cmd{portname, carrier}
1786 return write(writer);
1796 return read(reader);
1801 if (!writeTag(writer)) {
1804 if (!writeArgs(writer)) {
1831 if (!readTag(reader)) {
1834 if (!readArgs(reader)) {
1876 return write(writer);
1882 return read(reader);
1891 if (!writer.
write(return_helper)) {
1907 if (!reader.
read(return_helper)) {
1946 return write(writer);
1956 return read(reader);
1961 if (!writeTag(writer)) {
1964 if (!writeArgs(writer)) {
1988 if (!readTag(reader)) {
1991 if (!readArgs(reader)) {
2030 return write(writer);
2036 return read(reader);
2045 if (!writer.
write(return_helper)) {
2061 if (!reader.
read(return_helper)) {
2100 return write(writer);
2110 return read(reader);
2115 if (!writeTag(writer)) {
2118 if (!writeArgs(writer)) {
2142 if (!readTag(reader)) {
2145 if (!readArgs(reader)) {
2184 return write(writer);
2190 return read(reader);
2215 if (!reader.
readBool(return_helper)) {
2254 return write(writer);
2264 return read(reader);
2269 if (!writeTag(writer)) {
2272 if (!writeArgs(writer)) {
2296 if (!readTag(reader)) {
2299 if (!readArgs(reader)) {
2338 return write(writer);
2344 return read(reader);
2369 if (!reader.
readBool(return_helper)) {
2398 return write(writer);
2408 return read(reader);
2413 if (!writeTag(writer)) {
2416 if (!writeArgs(writer)) {
2437 if (!readTag(reader)) {
2440 if (!readArgs(reader)) {
2471 return write(writer);
2477 return read(reader);
2502 if (!reader.
readBool(return_helper)) {
2531 return write(writer);
2541 return read(reader);
2546 if (!writeTag(writer)) {
2549 if (!writeArgs(writer)) {
2570 if (!readTag(reader)) {
2573 if (!readArgs(reader)) {
2604 return write(writer);
2610 return read(reader);
2635 if (!reader.
readBool(return_helper)) {
2674 return write(writer);
2684 return read(reader);
2689 if (!writeTag(writer)) {
2692 if (!writeArgs(writer)) {
2716 if (!readTag(reader)) {
2719 if (!readArgs(reader)) {
2758 return write(writer);
2764 return read(reader);
2773 if (!writer.
write(return_helper)) {
2789 if (!reader.
read(return_helper)) {
2828 return write(writer);
2838 return read(reader);
2843 if (!writeTag(writer)) {
2846 if (!writeArgs(writer)) {
2870 if (!readTag(reader)) {
2873 if (!readArgs(reader)) {
2912 return write(writer);
2918 return read(reader);
2927 if (!writer.
write(return_helper)) {
2943 if (!reader.
read(return_helper)) {
2972 return write(writer);
2982 return read(reader);
2987 if (!writeTag(writer)) {
2990 if (!writeArgs(writer)) {
3011 if (!readTag(reader)) {
3014 if (!readArgs(reader)) {
3045 return write(writer);
3051 return read(reader);
3060 if (!writer.
write(return_helper)) {
3076 if (!reader.
read(return_helper)) {
3105 return write(writer);
3115 return read(reader);
3120 if (!writeTag(writer)) {
3123 if (!writeArgs(writer)) {
3144 if (!readTag(reader)) {
3147 if (!readArgs(reader)) {
3178 return write(writer);
3184 return read(reader);
3193 if (!writer.
write(return_helper)) {
3209 if (!reader.
read(return_helper)) {
3223 cmd{portname, params}
3249 return write(writer);
3259 return read(reader);
3264 if (!writeTag(writer)) {
3267 if (!writeArgs(writer)) {
3294 if (!readTag(reader)) {
3297 if (!readArgs(reader)) {
3344 return write(writer);
3350 return read(reader);
3359 if (!writer.
write(return_helper)) {
3375 if (!reader.
read(return_helper)) {
3389 cmd{portname, params}
3415 return write(writer);
3425 return read(reader);
3430 if (!writeTag(writer)) {
3433 if (!writeArgs(writer)) {
3460 if (!readTag(reader)) {
3463 if (!readArgs(reader)) {
3510 return write(writer);
3516 return read(reader);
3525 if (!writer.
write(return_helper)) {
3541 if (!reader.
read(return_helper)) {
3580 return write(writer);
3590 return read(reader);
3595 if (!writeTag(writer)) {
3598 if (!writeArgs(writer)) {
3622 if (!readTag(reader)) {
3625 if (!readArgs(reader)) {
3664 return write(writer);
3670 return read(reader);
3679 if (!writer.
write(return_helper)) {
3695 if (!reader.
read(return_helper)) {
3734 return write(writer);
3744 return read(reader);
3749 if (!writeTag(writer)) {
3752 if (!writeArgs(writer)) {
3776 if (!readTag(reader)) {
3779 if (!readArgs(reader)) {
3818 return write(writer);
3824 return read(reader);
3833 if (!writer.
write(return_helper)) {
3849 if (!reader.
read(return_helper)) {
3878 return write(writer);
3888 return read(reader);
3893 if (!writeTag(writer)) {
3896 if (!writeArgs(writer)) {
3917 if (!readTag(reader)) {
3920 if (!readArgs(reader)) {
3951 return write(writer);
3957 return read(reader);
3966 if (!writer.
write(return_helper)) {
3982 if (!reader.
read(return_helper)) {
4011 return write(writer);
4021 return read(reader);
4026 if (!writeTag(writer)) {
4029 if (!writeArgs(writer)) {
4050 if (!readTag(reader)) {
4053 if (!readArgs(reader)) {
4084 return write(writer);
4090 return read(reader);
4099 if (!writer.
write(return_helper)) {
4115 if (!reader.
read(return_helper)) {
4154 return write(writer);
4164 return read(reader);
4169 if (!writeTag(writer)) {
4172 if (!writeArgs(writer)) {
4196 if (!readTag(reader)) {
4199 if (!readArgs(reader)) {
4238 return write(writer);
4244 return read(reader);
4253 if (!writer.
write(return_helper)) {
4269 if (!reader.
read(return_helper)) {
4308 return write(writer);
4318 return read(reader);
4323 if (!writeTag(writer)) {
4326 if (!writeArgs(writer)) {
4350 if (!readTag(reader)) {
4353 if (!readArgs(reader)) {
4392 return write(writer);
4398 return read(reader);
4407 if (!writer.
write(return_helper)) {
4423 if (!reader.
read(return_helper)) {
4452 return write(writer);
4462 return read(reader);
4467 if (!writeTag(writer)) {
4470 if (!writeArgs(writer)) {
4491 if (!readTag(reader)) {
4494 if (!readArgs(reader)) {
4525 return write(writer);
4531 return read(reader);
4540 if (!writer.
write(return_helper)) {
4556 if (!reader.
read(return_helper)) {
4585 return write(writer);
4595 return read(reader);
4600 if (!writeTag(writer)) {
4603 if (!writeArgs(writer)) {
4624 if (!readTag(reader)) {
4627 if (!readArgs(reader)) {
4658 return write(writer);
4664 return read(reader);
4673 if (!writer.
write(return_helper)) {
4689 if (!reader.
read(return_helper)) {
4728 return write(writer);
4738 return read(reader);
4743 if (!writeTag(writer)) {
4746 if (!writeArgs(writer)) {
4770 if (!readTag(reader)) {
4773 if (!readArgs(reader)) {
4812 return write(writer);
4818 return read(reader);
4827 if (!writer.
write(return_helper)) {
4843 if (!reader.
read(return_helper)) {
4882 return write(writer);
4892 return read(reader);
4897 if (!writeTag(writer)) {
4900 if (!writeArgs(writer)) {
4924 if (!readTag(reader)) {
4927 if (!readArgs(reader)) {
4966 return write(writer);
4972 return read(reader);
4981 if (!writer.
write(return_helper)) {
4997 if (!reader.
read(return_helper)) {
5011 cmd{portname, scheduler_priority, scheduler_policy, qos_tos}
5027 scheduler_priority{scheduler_priority},
5028 scheduler_policy{scheduler_policy},
5039 return write(writer);
5049 return read(reader);
5054 if (!writeTag(writer)) {
5057 if (!writeArgs(writer)) {
5076 if (!writer.
writeI32(scheduler_priority)) {
5079 if (!writer.
writeI32(scheduler_policy)) {
5090 if (!readTag(reader)) {
5093 if (!readArgs(reader)) {
5126 if (!reader.
readI32(scheduler_priority)) {
5134 if (!reader.
readI32(scheduler_policy)) {
5142 if (!reader.
readI32(qos_tos)) {
5156 return write(writer);
5162 return read(reader);
5171 if (!writer.
write(return_helper)) {
5187 if (!reader.
read(return_helper)) {
5201 cmd{portname, scheduler_priority, scheduler_policy, qos_tos}
5217 scheduler_priority{scheduler_priority},
5218 scheduler_policy{scheduler_policy},
5229 return write(writer);
5239 return read(reader);
5244 if (!writeTag(writer)) {
5247 if (!writeArgs(writer)) {
5266 if (!writer.
writeI32(scheduler_priority)) {
5269 if (!writer.
writeI32(scheduler_policy)) {
5280 if (!readTag(reader)) {
5283 if (!readArgs(reader)) {
5316 if (!reader.
readI32(scheduler_priority)) {
5324 if (!reader.
readI32(scheduler_policy)) {
5332 if (!reader.
readI32(qos_tos)) {
5346 return write(writer);
5352 return read(reader);
5361 if (!writer.
write(return_helper)) {
5377 if (!reader.
read(return_helper)) {
5391 cmd{priority, policy}
5417 return write(writer);
5427 return read(reader);
5432 if (!writeTag(writer)) {
5435 if (!writeArgs(writer)) {
5462 if (!readTag(reader)) {
5465 if (!readArgs(reader)) {
5490 if (!reader.
readI32(priority)) {
5498 if (!reader.
readI32(policy)) {
5512 return write(writer);
5518 return read(reader);
5543 if (!reader.
readBool(return_helper)) {
5558 yarp().setOwner(*
this);
5563 if (!
yarp().canWrite()) {
5567 bool ok =
yarp().write(helper, helper);
5573 if (!
yarp().canWrite()) {
5577 bool ok =
yarp().write(helper, helper);
5583 if (!
yarp().canWrite()) {
5587 bool ok =
yarp().write(helper, helper);
5588 return ok ? helper.reply.return_helper :
bool{};
5593 if (!
yarp().canWrite()) {
5597 bool ok =
yarp().write(helper, helper);
5598 return ok ? helper.reply.return_helper :
bool{};
5603 if (!
yarp().canWrite()) {
5607 bool ok =
yarp().write(helper, helper);
5608 return ok ? helper.reply.return_helper :
bool{};
5613 if (!
yarp().canWrite()) {
5617 bool ok =
yarp().write(helper, helper);
5618 return ok ? helper.reply.return_helper :
bool{};
5623 if (!
yarp().canWrite()) {
5627 bool ok =
yarp().write(helper, helper);
5633 if (!
yarp().canWrite()) {
5637 bool ok =
yarp().write(helper, helper);
5643 if (!
yarp().canWrite()) {
5647 bool ok =
yarp().write(helper, helper);
5653 if (!
yarp().canWrite()) {
5657 bool ok =
yarp().write(helper, helper);
5663 if (!
yarp().canWrite()) {
5667 bool ok =
yarp().write(helper, helper);
5673 if (!
yarp().canWrite()) {
5677 bool ok =
yarp().write(helper, helper);
5683 if (!
yarp().canWrite()) {
5687 bool ok =
yarp().write(helper, helper);
5693 if (!
yarp().canWrite()) {
5697 bool ok =
yarp().write(helper, helper);
5703 if (!
yarp().canWrite()) {
5707 bool ok =
yarp().write(helper, helper);
5713 if (!
yarp().canWrite()) {
5717 bool ok =
yarp().write(helper, helper);
5723 if (!
yarp().canWrite()) {
5727 bool ok =
yarp().write(helper, helper);
5733 if (!
yarp().canWrite()) {
5737 bool ok =
yarp().write(helper, helper);
5743 if (!
yarp().canWrite()) {
5747 bool ok =
yarp().write(helper, helper);
5753 if (!
yarp().canWrite()) {
5757 bool ok =
yarp().write(helper, helper);
5763 if (!
yarp().canWrite()) {
5767 bool ok =
yarp().write(helper, helper);
5773 if (!
yarp().canWrite()) {
5777 bool ok =
yarp().write(helper, helper);
5783 if (!
yarp().canWrite()) {
5787 bool ok =
yarp().write(helper, helper);
5793 if (!
yarp().canWrite()) {
5797 bool ok =
yarp().write(helper, helper);
5803 if (!
yarp().canWrite()) {
5807 bool ok =
yarp().write(helper, helper);
5808 return ok ? helper.reply.return_helper :
bool{};
5817 helpString.emplace_back(
"*** Available commands:");
5946 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
5947 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
5948 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");
5949 helpString.emplace_back(
"@return list of strings (one string per line)");
5953 helpString.emplace_back(
"Command not found");
5971 std::string tag = reader.
readTag(1);
5972 bool direct = (tag ==
"__direct__");
5977 if(tag ==
"getRemoteProtocolVersion") {
5984 auto proto = getLocalProtocolVersion();
6372 if (tag ==
"help") {
6383 if (!writer.
writeTag(
"many", 1, 0)) {
6410 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
An interface for writing to a network connection.
~Command() override=default
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(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 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.
return_addConnection return_helper
~Reply() override=default
static constexpr size_t s_reply_len
return_addConnection(*)(const std::string &, const std::string &) funcptr_t
PortCoreMsgs_addConnection_helper()=default
static constexpr const char * s_help
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.
static constexpr const char * s_prototype
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
void call(PortCoreMsgs *ptr)
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~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 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(*)(const std::string &) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
PortCoreMsgs_attachPortmonitorIn_helper()=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 const char * s_prototype
static constexpr const char * s_help
void call(PortCoreMsgs *ptr)
static constexpr size_t s_tag_len
bool readArgs(yarp::os::idl::WireReader &reader)
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)
~Command() override=default
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.
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_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
PortCoreMsgs_attachPortmonitorOut_helper()=default
static constexpr const char * s_tag
bool(*)(const std::string &) funcptr_t
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
void call(PortCoreMsgs *ptr)
static constexpr size_t s_tag_len
bool readTag(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
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 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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_delConnection return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr const char * s_tag
PortCoreMsgs_delConnection_helper()=default
void call(PortCoreMsgs *ptr)
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_delConnection(*)(const std::string &) funcptr_t
static constexpr const char * s_prototype
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeTag(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 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.
~Reply() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_cmd_len
PortCoreMsgs_detachPortmonitorIn_helper()=default
void call(PortCoreMsgs *ptr)
static constexpr size_t s_tag_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
static constexpr const char * s_help
static constexpr const char * s_prototype
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
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.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
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
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr size_t s_reply_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_tag
static constexpr size_t s_tag_len
PortCoreMsgs_detachPortmonitorOut_helper()=default
void call(PortCoreMsgs *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_prototype
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 readTag(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
return_getAdminProtocolVersion 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.
static constexpr const char * s_tag
static constexpr const char * s_prototype
void call(PortCoreMsgs *ptr)
PortCoreMsgs_getAdminProtocolVersion_helper()=default
static constexpr size_t s_cmd_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.
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
static constexpr const char * s_help
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
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 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_getConnectionInfo return_helper
static constexpr const char * s_tag
void call(PortCoreMsgs *ptr)
PortCoreMsgs_getConnectionInfoIn_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 size_t s_tag_len
static constexpr size_t s_reply_len
static constexpr const char * s_help
return_getConnectionInfo(*)(const std::string &) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
return_getConnectionInfo return_helper
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.
void call(PortCoreMsgs *ptr)
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
PortCoreMsgs_getConnectionInfoOut_helper()=default
static constexpr const char * s_prototype
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
return_getConnectionInfo(*)(const std::string &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
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 writeTag(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
return_getConnectionParams return_helper
~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.
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr const char * s_tag
static constexpr const char * s_prototype
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 constexpr size_t s_tag_len
static constexpr size_t s_reply_len
return_getConnectionParams(*)(const std::string &) funcptr_t
void call(PortCoreMsgs *ptr)
PortCoreMsgs_getConnectionParamsIn_helper()=default
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 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.
return_getConnectionParams return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
PortCoreMsgs_getConnectionParamsOut_helper()=default
void call(PortCoreMsgs *ptr)
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
static constexpr const char * s_prototype
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_getConnectionParams(*)(const std::string &) funcptr_t
static constexpr const char * s_help
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
bool readArgs(yarp::os::idl::WireReader &reader)
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 readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
return_getConnectionQos return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
PortCoreMsgs_getConnectionQosIn_helper()=default
static constexpr size_t s_tag_len
void call(PortCoreMsgs *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getConnectionQos(*)(const std::string &) funcptr_t
static constexpr size_t s_reply_len
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
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getConnectionQos return_helper
~Reply() override=default
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.
return_getConnectionQos(*)(const std::string &) funcptr_t
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
static constexpr size_t s_tag_len
PortCoreMsgs_getConnectionQosOut_helper()=default
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
void call(PortCoreMsgs *ptr)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
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 readArgs(yarp::os::idl::WireReader &reader)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
return_getPortInfo 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.
void call(PortCoreMsgs *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_help
PortCoreMsgs_getPortInfo_helper()=default
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_tag
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
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 writeTag(const yarp::os::idl::WireWriter &writer) const
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 readTag(yarp::os::idl::WireReader &reader)
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
return_getPortmonitorParams return_helper
static constexpr size_t s_cmd_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(PortCoreMsgs *ptr)
static constexpr size_t s_reply_len
PortCoreMsgs_getPortmonitorParamsIn_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_help
static constexpr const char * s_prototype
static constexpr const char * s_tag
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 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
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_getPortmonitorParams 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.
~Reply() override=default
PortCoreMsgs_getPortmonitorParamsOut_helper()=default
static constexpr const char * s_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr size_t s_reply_len
void call(PortCoreMsgs *ptr)
PortCoreMsgs_getRemoteProtocolVersion_helper()=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.
yarp::os::ApplicationNetworkProtocolVersion helper_proto
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
~Command() override=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
return_listConnections return_helper
~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.
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_tag
static constexpr size_t s_reply_len
void call(PortCoreMsgs *ptr)
static constexpr const char * s_prototype
PortCoreMsgs_listConnectionsIn_helper()=default
static constexpr size_t s_cmd_len
static constexpr const char * s_help
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
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.
return_listConnections return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(PortCoreMsgs *ptr)
PortCoreMsgs_listConnectionsOut_helper()=default
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
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_setConnectionParams return_helper
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
void call(PortCoreMsgs *ptr)
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
PortCoreMsgs_setConnectionParamsIn_helper()=default
static constexpr const char * s_tag
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_setConnectionParams(*)(const std::string &, const std::string &) funcptr_t
static constexpr size_t s_tag_len
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
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 readArgs(yarp::os::idl::WireReader &reader)
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_setConnectionParams return_helper
~Reply() override=default
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
static constexpr size_t s_reply_len
static constexpr const char * s_help
PortCoreMsgs_setConnectionParamsOut_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_setConnectionParams(*)(const std::string &, const std::string &) funcptr_t
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_tag_len
void call(PortCoreMsgs *ptr)
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
std::int32_t scheduler_policy
std::int32_t scheduler_priority
bool readArgs(yarp::os::idl::WireReader &reader)
~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 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.
return_setConnectionQos return_helper
static constexpr const char * s_tag
static constexpr const char * s_help
PortCoreMsgs_setConnectionQosIn_helper()=default
static constexpr size_t s_reply_len
void call(PortCoreMsgs *ptr)
static constexpr size_t s_cmd_len
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_setConnectionQos(*)(const std::string &, const std::int32_t, const std::int32_t, const std::int32_t) funcptr_t
static constexpr size_t s_tag_len
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
std::int32_t scheduler_priority
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.
~Command() override=default
std::int32_t scheduler_policy
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
return_setConnectionQos return_helper
static constexpr const char * s_tag
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr size_t s_cmd_len
static constexpr const char * s_help
void call(PortCoreMsgs *ptr)
return_setConnectionQos(*)(const std::string &, const std::int32_t, const std::int32_t, const std::int32_t) funcptr_t
PortCoreMsgs_setConnectionQosOut_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
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 readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
~Reply() override=default
return_setPortmonitorParams 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.
static constexpr size_t s_cmd_len
void call(PortCoreMsgs *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
return_setPortmonitorParams(*)(const std::string &) funcptr_t
static constexpr const char * s_help
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
PortCoreMsgs_setPortmonitorParamsIn_helper()=default
static constexpr const char * s_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
bool readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
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.
return_setPortmonitorParams return_helper
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
return_setPortmonitorParams(*)(const std::string &) funcptr_t
static constexpr const char * s_help
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
static constexpr const char * s_tag
static constexpr size_t s_tag_len
PortCoreMsgs_setPortmonitorParamsOut_helper()=default
static constexpr const char * s_prototype
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(PortCoreMsgs *ptr)
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 writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
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
static constexpr const char * s_help
void call(PortCoreMsgs *ptr)
PortCoreMsgs_setProcessScheduling_helper()=default
static constexpr const char * s_prototype
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_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.
static constexpr size_t s_tag_len
bool(*)(const std::int32_t, const std::int32_t) funcptr_t
static constexpr const char * s_tag
Administrative commands of a YARP port, handled by PortCore::adminBlock().
virtual return_getPortInfo getPortInfo()
Give information about this port, its main thread, and the process and the platform on which it is ru...
virtual return_getConnectionInfo getConnectionInfoOut(const std::string &portname)
Give details about the output connection going from this port to another port.
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual return_getAdminProtocolVersion getAdminProtocolVersion()
Report the version of the administrative protocol of this port (it is distinct from the version of th...
virtual return_listConnections listConnectionsOut()
List the ports connected to the output of this port.
virtual bool attachPortmonitorIn(const std::string &prop)
Attach a portmonitor plug-in to the input of this port (it replaces the one previously attached,...
virtual return_setPortmonitorParams setPortmonitorParamsIn(const std::string ¶ms)
Set the parameters of the portmonitor plug-in attached to the input of this port.
virtual return_getConnectionQos getConnectionQosOut(const std::string &portname)
Get the quality of service of the output connection going from this port to another port.
virtual bool setProcessScheduling(const std::int32_t priority, const std::int32_t policy)
Set the scheduling parameters of all the threads of the process which owns this port.
virtual return_setConnectionQos setConnectionQosOut(const std::string &portname, const std::int32_t scheduler_priority, const std::int32_t scheduler_policy, const std::int32_t qos_tos)
Set the quality of service of the output connection going from this port to another port.
virtual return_getPortmonitorParams getPortmonitorParamsIn()
Get the parameters of the portmonitor plug-in attached to the input of this port.
virtual return_getConnectionQos getConnectionQosIn(const std::string &portname)
Get the quality of service of the input connection coming from another port to this port.
virtual return_setConnectionParams setConnectionParamsOut(const std::string &portname, const std::string ¶ms)
Set the carrier parameters of the output connection going from this port to another port.
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual return_getConnectionParams getConnectionParamsIn(const std::string &portname)
Get the carrier parameters of the input connection coming from another port to this port.
virtual return_setConnectionParams setConnectionParamsIn(const std::string &portname, const std::string ¶ms)
Set the carrier parameters of the input connection coming from another port to this port.
virtual bool checkProtocolVersion()
virtual bool detachPortmonitorOut()
Detach the portmonitor plug-in from the output of this port.
virtual return_getPortmonitorParams getPortmonitorParamsOut()
Get the parameters of the portmonitor plug-in attached to the output of this port.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual bool attachPortmonitorOut(const std::string &prop)
Attach a portmonitor plug-in to the output of this port (it replaces the one previously attached,...
virtual return_delConnection delConnection(const std::string &portname)
Remove all the input and output connections between this port and another port.
virtual bool detachPortmonitorIn()
Detach the portmonitor plug-in from the input of this port.
virtual return_setConnectionQos setConnectionQosIn(const std::string &portname, const std::int32_t scheduler_priority, const std::int32_t scheduler_policy, const std::int32_t qos_tos)
Set the quality of service of the input connection coming from another port to this port.
virtual return_addConnection addConnection(const std::string &portname, const std::string &carrier="")
Add an output connection from this port to another port.
virtual return_listConnections listConnectionsIn()
List the ports connected to the input of this port.
virtual return_getConnectionInfo getConnectionInfoIn(const std::string &portname)
Give details about the input connection coming from another port to this port.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual return_getConnectionParams getConnectionParamsOut(const std::string &portname)
Get the carrier parameters of the output connection going from this port to another port.
virtual return_setPortmonitorParams setPortmonitorParamsOut(const std::string ¶ms)
Set the parameters of the portmonitor plug-in attached to the output of this port.
This is a base class for objects that can be both read from and be written to the YARP network.
bool write(PortWriter &writer)
Write a message to the associated port or reader.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
bool readI32(std::int32_t &x)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool read(WirePortable &obj)
IDL-friendly connection writer.
bool writeBool(bool x, bool skip_tag=false) const
bool write(const WirePortable &obj) const
bool writeI32(std::int32_t x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
Reply of PortCoreMsgs::addConnection().
Reply of PortCoreMsgs::delConnection().
Reply of PortCoreMsgs::getAdminProtocolVersion().
Reply of PortCoreMsgs::getConnectionInfoIn() and PortCoreMsgs::getConnectionInfoOut().
Reply of PortCoreMsgs::getConnectionParamsIn() and PortCoreMsgs::getConnectionParamsOut().
Reply of PortCoreMsgs::getConnectionQosIn() and PortCoreMsgs::getConnectionQosOut().
Reply of PortCoreMsgs::getPortInfo().
Reply of PortCoreMsgs::getPortmonitorParamsIn() and PortCoreMsgs::getPortmonitorParamsOut().
Reply of PortCoreMsgs::listConnectionsIn() and PortCoreMsgs::listConnectionsOut().
Reply of PortCoreMsgs::setConnectionParamsIn() and PortCoreMsgs::setConnectionParamsOut().
Reply of PortCoreMsgs::setConnectionQosIn() and PortCoreMsgs::setConnectionQosOut().
Reply of PortCoreMsgs::setPortmonitorParamsIn() and PortCoreMsgs::setPortmonitorParamsOut().
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
An interface to the operating system, including Port based communication.
The main, catch-all namespace for YARP.
#define YARP_VERSION_PATCH
#define YARP_VERSION_MAJOR
#define YARP_VERSION_MINOR