44 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
58 if (!helper_proto.read(connection)) {
68 if(!
yarp().canWrite()) {
69 yError(
" Missing server method yarpdataplayer_console_IDL::getRemoteProtocolVersion");
74 return helper.helper_proto;}
85 if (remproto.protocol_version != locproto.protocol_version)
87 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
88 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
89 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
159 static constexpr const char*
s_tag{
"step"};
163 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::step()"};
165 "Steps the player once. The player will be stepped\n"
166 "until all parts have sent data\n"
167 "@return true/false on success/failure"
226 static constexpr const char*
s_tag{
"setFrame"};
230 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setFrame(const std::int32_t frameNum)"};
232 "Sets the frame number to the user desired frame.\n"
233 "@param frameNum specifies the frame number the user\n"
234 " would like to skip to\n"
235 "@return true/false on success/failure"
294 static constexpr const char*
s_tag{
"getFrame"};
298 static constexpr const char*
s_prototype{
"std::int32_t yarpdataplayer_console_IDL::getFrame(const std::string& name)"};
300 "Gets the frame number the user is requesting\n"
301 "@param name specifies the name of the data to modify\n"
302 " would like to skip to\n"
303 "@return i32 returns the current frame index"
362 static constexpr const char*
s_tag{
"load"};
366 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::load(const std::string& path)"};
368 "Loads a dataset from a path\n"
369 "@return true/false on success/failure"
423 static constexpr const char*
s_tag{
"play"};
427 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::play()"};
429 "Plays the dataSets\n"
430 "@return true/false on success/failure"
484 static constexpr const char*
s_tag{
"pause"};
488 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::pause()"};
490 "Pauses the dataSets\n"
491 "@return true/false on success/failure"
545 static constexpr const char*
s_tag{
"stop"};
549 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::stop()"};
551 "Stops the dataSets\n"
552 "@return true/false on success/failure"
611 static constexpr const char*
s_tag{
"enable"};
615 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::enable(const std::string& part)"};
617 "Enables the specified part.\n"
618 "@param name specifies the name of the loaded data\n"
619 "@return true/false on success/failure"
678 static constexpr const char*
s_tag{
"disable"};
682 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::disable(const std::string& part)"};
684 "Disable the specified part.\n"
685 "@param name specifies the name of the loaded data\n"
686 "@return true/false on success/failure"
740 static constexpr const char*
s_tag{
"getAllParts"};
744 static constexpr const char*
s_prototype{
"std::vector<std::string> yarpdataplayer_console_IDL::getAllParts()"};
746 "Gets the names of all parts loaded.\n"
747 "@return list of names of the loaded parts."
806 static constexpr const char*
s_tag{
"getPortName"};
810 static constexpr const char*
s_prototype{
"std::string yarpdataplayer_console_IDL::getPortName(const std::string& part)"};
812 "Gets the name of the port associated to the specified part\n"
813 "@param name specifies the name of the data to modify\n"
868 using funcptr_t = bool (*)(
const std::string&,
const std::string&);
874 static constexpr const char*
s_tag{
"setPortName"};
878 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setPortName(const std::string& part, const std::string& new_name)"};
880 "Sets the name of the port associated to the specified part\n"
881 "@param part specifies the name of the data to modify\n"
882 "@param new_name specifies the new name to assign to the port\n"
883 "@return true/false on success/failure"
942 static constexpr const char*
s_tag{
"setSpeed"};
946 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setSpeed(const double speed)"};
948 "Sets the player speed\n"
949 "@param speed specifies\n"
950 "@return true/false on success/failure"
1004 static constexpr const char*
s_tag{
"getSpeed"};
1008 static constexpr const char*
s_prototype{
"double yarpdataplayer_console_IDL::getSpeed()"};
1010 "Gets the player speed\n"
1011 "@return value of the player speed"
1070 static constexpr const char*
s_tag{
"repeat"};
1074 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::repeat(const bool val)"};
1076 "Sets repeat mode\n"
1077 "@param val if true repeat mode is active.\n"
1078 "@return true/false on success/failure"
1137 static constexpr const char*
s_tag{
"setStrict"};
1141 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setStrict(const bool val)"};
1143 "Sets strict mode\n"
1144 "@param val if true strict mode is active.\n"
1145 "@return true/false on success/failure"
1204 static constexpr const char*
s_tag{
"forward"};
1208 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::forward(const std::int32_t steps)"};
1211 "@param steps number of steps to go forward (default=5).\n"
1212 "@return true/false on success/failure"
1271 static constexpr const char*
s_tag{
"backward"};
1275 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::backward(const std::int32_t steps)"};
1278 "@param steps number of steps to go backward (default=5).\n"
1279 "@return true/false on success/failure"
1333 static constexpr const char*
s_tag{
"getProgress"};
1337 static constexpr const char*
s_prototype{
"double yarpdataplayer_console_IDL::getProgress()"};
1339 "Get the progress of the parts\n"
1340 "@return the progress of the parts"
1394 static constexpr const char*
s_tag{
"getStatus"};
1398 static constexpr const char*
s_prototype{
"std::string yarpdataplayer_console_IDL::getStatus()"};
1400 "Get the status of playing\n"
1401 "@return the status (playing, paused, stopped)"
1455 static constexpr const char*
s_tag{
"resume"};
1459 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::resume()"};
1461 "Resume dataset from where it was paused\n"
1462 "@return true/false on success/failure"
1516 static constexpr const char*
s_tag{
"quit"};
1520 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::quit()"};
1522 "Quit the module.\n"
1523 "@return true/false on success/failure"
1544 return write(writer);
1554 return read(reader);
1559 if (!writeTag(writer)) {
1562 if (!writeArgs(writer)) {
1583 if (!readTag(reader)) {
1586 if (!readArgs(reader)) {
1617 return write(writer);
1623 return read(reader);
1648 if (!reader.
readBool(return_helper)) {
1687 return write(writer);
1697 return read(reader);
1702 if (!writeTag(writer)) {
1705 if (!writeArgs(writer)) {
1729 if (!readTag(reader)) {
1732 if (!readArgs(reader)) {
1757 if (!reader.
readI32(frameNum)) {
1771 return write(writer);
1777 return read(reader);
1802 if (!reader.
readBool(return_helper)) {
1841 return write(writer);
1851 return read(reader);
1856 if (!writeTag(writer)) {
1859 if (!writeArgs(writer)) {
1883 if (!readTag(reader)) {
1886 if (!readArgs(reader)) {
1925 return write(writer);
1931 return read(reader);
1940 if (!writer.
writeI32(return_helper)) {
1956 if (!reader.
readI32(return_helper)) {
1995 return write(writer);
2005 return read(reader);
2010 if (!writeTag(writer)) {
2013 if (!writeArgs(writer)) {
2037 if (!readTag(reader)) {
2040 if (!readArgs(reader)) {
2079 return write(writer);
2085 return read(reader);
2110 if (!reader.
readBool(return_helper)) {
2139 return write(writer);
2149 return read(reader);
2154 if (!writeTag(writer)) {
2157 if (!writeArgs(writer)) {
2178 if (!readTag(reader)) {
2181 if (!readArgs(reader)) {
2212 return write(writer);
2218 return read(reader);
2243 if (!reader.
readBool(return_helper)) {
2272 return write(writer);
2282 return read(reader);
2287 if (!writeTag(writer)) {
2290 if (!writeArgs(writer)) {
2311 if (!readTag(reader)) {
2314 if (!readArgs(reader)) {
2345 return write(writer);
2351 return read(reader);
2376 if (!reader.
readBool(return_helper)) {
2405 return write(writer);
2415 return read(reader);
2420 if (!writeTag(writer)) {
2423 if (!writeArgs(writer)) {
2444 if (!readTag(reader)) {
2447 if (!readArgs(reader)) {
2478 return write(writer);
2484 return read(reader);
2509 if (!reader.
readBool(return_helper)) {
2548 return write(writer);
2558 return read(reader);
2563 if (!writeTag(writer)) {
2566 if (!writeArgs(writer)) {
2590 if (!readTag(reader)) {
2593 if (!readArgs(reader)) {
2632 return write(writer);
2638 return read(reader);
2663 if (!reader.
readBool(return_helper)) {
2702 return write(writer);
2712 return read(reader);
2717 if (!writeTag(writer)) {
2720 if (!writeArgs(writer)) {
2744 if (!readTag(reader)) {
2747 if (!readArgs(reader)) {
2786 return write(writer);
2792 return read(reader);
2817 if (!reader.
readBool(return_helper)) {
2846 return write(writer);
2856 return read(reader);
2861 if (!writeTag(writer)) {
2864 if (!writeArgs(writer)) {
2885 if (!readTag(reader)) {
2888 if (!readArgs(reader)) {
2919 return write(writer);
2925 return read(reader);
2937 for (
const auto& _item : return_helper) {
2964 if constexpr (expected_tag != 0) {
2965 if (_csize != 0 && _etype.
code != expected_tag) {
2969 return_helper.resize(_csize);
2970 for (
size_t _i0 = 0; _i0 < _csize; ++_i0) {
2975 if (!reader.
readString(return_helper[_i0])) {
3017 return write(writer);
3027 return read(reader);
3032 if (!writeTag(writer)) {
3035 if (!writeArgs(writer)) {
3059 if (!readTag(reader)) {
3062 if (!readArgs(reader)) {
3101 return write(writer);
3107 return read(reader);
3172 return write(writer);
3182 return read(reader);
3187 if (!writeTag(writer)) {
3190 if (!writeArgs(writer)) {
3217 if (!readTag(reader)) {
3220 if (!readArgs(reader)) {
3267 return write(writer);
3273 return read(reader);
3298 if (!reader.
readBool(return_helper)) {
3337 return write(writer);
3347 return read(reader);
3352 if (!writeTag(writer)) {
3355 if (!writeArgs(writer)) {
3379 if (!readTag(reader)) {
3382 if (!readArgs(reader)) {
3421 return write(writer);
3427 return read(reader);
3452 if (!reader.
readBool(return_helper)) {
3481 return write(writer);
3491 return read(reader);
3496 if (!writeTag(writer)) {
3499 if (!writeArgs(writer)) {
3520 if (!readTag(reader)) {
3523 if (!readArgs(reader)) {
3554 return write(writer);
3560 return read(reader);
3624 return write(writer);
3634 return read(reader);
3639 if (!writeTag(writer)) {
3642 if (!writeArgs(writer)) {
3666 if (!readTag(reader)) {
3669 if (!readArgs(reader)) {
3703 return write(writer);
3709 return read(reader);
3734 if (!reader.
readBool(return_helper)) {
3773 return write(writer);
3783 return read(reader);
3788 if (!writeTag(writer)) {
3791 if (!writeArgs(writer)) {
3815 if (!readTag(reader)) {
3818 if (!readArgs(reader)) {
3852 return write(writer);
3858 return read(reader);
3883 if (!reader.
readBool(return_helper)) {
3922 return write(writer);
3932 return read(reader);
3937 if (!writeTag(writer)) {
3940 if (!writeArgs(writer)) {
3964 if (!readTag(reader)) {
3967 if (!readArgs(reader)) {
4001 return write(writer);
4007 return read(reader);
4032 if (!reader.
readBool(return_helper)) {
4071 return write(writer);
4081 return read(reader);
4086 if (!writeTag(writer)) {
4089 if (!writeArgs(writer)) {
4113 if (!readTag(reader)) {
4116 if (!readArgs(reader)) {
4150 return write(writer);
4156 return read(reader);
4181 if (!reader.
readBool(return_helper)) {
4210 return write(writer);
4220 return read(reader);
4225 if (!writeTag(writer)) {
4228 if (!writeArgs(writer)) {
4249 if (!readTag(reader)) {
4252 if (!readArgs(reader)) {
4283 return write(writer);
4289 return read(reader);
4343 return write(writer);
4353 return read(reader);
4358 if (!writeTag(writer)) {
4361 if (!writeArgs(writer)) {
4382 if (!readTag(reader)) {
4385 if (!readArgs(reader)) {
4416 return write(writer);
4422 return read(reader);
4476 return write(writer);
4486 return read(reader);
4491 if (!writeTag(writer)) {
4494 if (!writeArgs(writer)) {
4515 if (!readTag(reader)) {
4518 if (!readArgs(reader)) {
4549 return write(writer);
4555 return read(reader);
4580 if (!reader.
readBool(return_helper)) {
4609 return write(writer);
4619 return read(reader);
4624 if (!writeTag(writer)) {
4627 if (!writeArgs(writer)) {
4648 if (!readTag(reader)) {
4651 if (!readArgs(reader)) {
4682 return write(writer);
4688 return read(reader);
4713 if (!reader.
readBool(return_helper)) {
4728 yarp().setOwner(*
this);
4733 if (!
yarp().canWrite()) {
4737 bool ok =
yarp().write(helper, helper);
4738 return ok ? helper.reply.return_helper :
bool{};
4743 if (!
yarp().canWrite()) {
4747 bool ok =
yarp().write(helper, helper);
4748 return ok ? helper.reply.return_helper :
bool{};
4753 if (!
yarp().canWrite()) {
4757 bool ok =
yarp().write(helper, helper);
4758 return ok ? helper.reply.return_helper : std::int32_t{};
4763 if (!
yarp().canWrite()) {
4767 bool ok =
yarp().write(helper, helper);
4768 return ok ? helper.reply.return_helper :
bool{};
4773 if (!
yarp().canWrite()) {
4777 bool ok =
yarp().write(helper, helper);
4778 return ok ? helper.reply.return_helper :
bool{};
4783 if (!
yarp().canWrite()) {
4787 bool ok =
yarp().write(helper, helper);
4788 return ok ? helper.reply.return_helper :
bool{};
4793 if (!
yarp().canWrite()) {
4797 bool ok =
yarp().write(helper, helper);
4798 return ok ? helper.reply.return_helper :
bool{};
4803 if (!
yarp().canWrite()) {
4807 bool ok =
yarp().write(helper, helper);
4808 return ok ? helper.reply.return_helper :
bool{};
4813 if (!
yarp().canWrite()) {
4817 bool ok =
yarp().write(helper, helper);
4818 return ok ? helper.reply.return_helper :
bool{};
4823 if (!
yarp().canWrite()) {
4827 bool ok =
yarp().write(helper, helper);
4828 return ok ? helper.reply.return_helper : std::vector<std::string>{};
4833 if (!
yarp().canWrite()) {
4837 bool ok =
yarp().write(helper, helper);
4838 return ok ? helper.reply.return_helper : std::string{};
4843 if (!
yarp().canWrite()) {
4847 bool ok =
yarp().write(helper, helper);
4848 return ok ? helper.reply.return_helper :
bool{};
4853 if (!
yarp().canWrite()) {
4857 bool ok =
yarp().write(helper, helper);
4858 return ok ? helper.reply.return_helper :
bool{};
4863 if (!
yarp().canWrite()) {
4867 bool ok =
yarp().write(helper, helper);
4868 return ok ? helper.reply.return_helper :
double{};
4873 if (!
yarp().canWrite()) {
4877 bool ok =
yarp().write(helper, helper);
4878 return ok ? helper.reply.return_helper :
bool{};
4883 if (!
yarp().canWrite()) {
4887 bool ok =
yarp().write(helper, helper);
4888 return ok ? helper.reply.return_helper :
bool{};
4893 if (!
yarp().canWrite()) {
4897 bool ok =
yarp().write(helper, helper);
4898 return ok ? helper.reply.return_helper :
bool{};
4903 if (!
yarp().canWrite()) {
4907 bool ok =
yarp().write(helper, helper);
4908 return ok ? helper.reply.return_helper :
bool{};
4913 if (!
yarp().canWrite()) {
4917 bool ok =
yarp().write(helper, helper);
4918 return ok ? helper.reply.return_helper :
double{};
4923 if (!
yarp().canWrite()) {
4927 bool ok =
yarp().write(helper, helper);
4928 return ok ? helper.reply.return_helper : std::string{};
4933 if (!
yarp().canWrite()) {
4937 bool ok =
yarp().write(helper, helper);
4938 return ok ? helper.reply.return_helper :
bool{};
4943 if (!
yarp().canWrite()) {
4947 bool ok =
yarp().write(helper, helper);
4948 return ok ? helper.reply.return_helper :
bool{};
4954 bool showAll = (functionName ==
"--all");
4955 std::vector<std::string> helpString;
4957 helpString.emplace_back(
"*** Available commands:");
4980 helpString.emplace_back(
"help");
5070 if (functionName ==
"help") {
5071 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
5072 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
5073 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");
5074 helpString.emplace_back(
"@return list of strings (one string per line)");
5077 if (helpString.empty()) {
5078 helpString.emplace_back(
"Command not found");
5086 constexpr size_t max_tag_len = 1;
5096 std::string tag = reader.
readTag(1);
5097 bool direct = (tag ==
"__direct__");
5101 while (tag_len <= max_tag_len && !reader.
isError()) {
5102 if(tag ==
"getRemoteProtocolVersion") {
5109 auto proto = getLocalProtocolVersion();
5115 if (!writer.
write(proto)) {
5452 if (tag ==
"help") {
5453 std::string functionName;
5455 functionName =
"--all";
5457 auto help_strings = help(functionName);
5463 if (!writer.
writeTag(
"many", 1, 0)) {
5469 for (
const auto& help_string : help_strings) {
5485 std::string next_tag = reader.
readTag(1);
5486 if (next_tag.empty()) {
5489 tag.append(
"_").append(next_tag);
5490 tag_len = std::count(tag.begin(), tag.end(),
'_') + 1;
#define BOTTLE_TAG_STRING
short int protocol_version
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.
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)
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
bool readI32(std::int32_t &x)
std::string readTag(size_t len=static_cast< size_t >(-1))
bool readFloat64(yarp::conf::float64_t &x)
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 writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeString(const std::string &str, bool skip_tag=false) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
~Command() override=default
bool readArgs(yarp::os::idl::WireReader &reader)
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool 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.
yarpdataplayer_console_IDL_backward_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_help
static constexpr size_t s_cmd_len
bool(*)(const std::int32_t) funcptr_t
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(yarpdataplayer_console_IDL *ptr)
static constexpr const char * s_prototype
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(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.
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_help
bool(*)(const std::string &) funcptr_t
static constexpr size_t s_reply_len
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarpdataplayer_console_IDL_disable_helper()=default
static constexpr size_t s_tag_len
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool readArgs(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 readTag(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.
~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
void call(yarpdataplayer_console_IDL *ptr)
bool(*)(const std::string &) funcptr_t
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_len
yarpdataplayer_console_IDL_enable_helper()=default
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 const char * s_tag
static constexpr const char * s_help
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 writeTag(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
~Reply() override=default
static constexpr size_t s_reply_len
bool(*)(const std::int32_t) funcptr_t
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
static constexpr const char * s_help
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_tag
yarpdataplayer_console_IDL_forward_helper()=default
void call(yarpdataplayer_console_IDL *ptr)
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)
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
std::vector< std::string > 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_help
void call(yarpdataplayer_console_IDL *ptr)
yarpdataplayer_console_IDL_getAllParts_helper()=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_tag
std::vector< std::string >(*)() funcptr_t
static constexpr size_t s_cmd_len
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_tag_len
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 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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
std::int32_t return_helper
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
void call(yarpdataplayer_console_IDL *ptr)
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 const char * s_prototype
std::int32_t(*)(const std::string &) funcptr_t
static constexpr const char * s_tag
yarpdataplayer_console_IDL_getFrame_helper()=default
static constexpr size_t s_cmd_len
static constexpr const char * s_help
bool readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
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 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.
~Reply() override=default
std::string return_helper
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * s_tag
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
std::string(*)(const std::string &) funcptr_t
yarpdataplayer_console_IDL_getPortName_helper()=default
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_reply_len
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
bool readArgs(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 readTag(yarp::os::idl::WireReader &reader)
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
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.
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_tag_len
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
yarpdataplayer_console_IDL_getProgress_helper()=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.
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::ApplicationNetworkProtocolVersion helper_proto
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarpdataplayer_console_IDL_getRemoteProtocolVersion_helper()=default
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 readArgs(yarp::os::idl::WireReader &reader)
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.
~Command() override=default
~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 const char * s_prototype
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
void call(yarpdataplayer_console_IDL *ptr)
static constexpr const char * s_help
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarpdataplayer_console_IDL_getSpeed_helper()=default
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 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 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
std::string return_helper
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_cmd_len
static constexpr size_t s_tag_len
yarpdataplayer_console_IDL_getStatus_helper()=default
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 const char * s_tag
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_help
std::string(*)() funcptr_t
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.
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
yarpdataplayer_console_IDL_load_helper()=default
static constexpr const char * s_help
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
bool(*)(const std::string &) funcptr_t
static constexpr const char * s_prototype
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_tag
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
~Command() override=default
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 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
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarpdataplayer_console_IDL_pause_helper()=default
static constexpr const char * s_help
static constexpr size_t s_reply_len
static constexpr size_t s_tag_len
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
void call(yarpdataplayer_console_IDL *ptr)
static constexpr const char * s_tag
static constexpr size_t s_cmd_len
bool writeTag(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 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 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(yarpdataplayer_console_IDL *ptr)
yarpdataplayer_console_IDL_play_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 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.
static constexpr const char * s_prototype
static constexpr const char * s_help
static constexpr const char * s_tag
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)
~Command() override=default
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readTag(yarp::os::idl::WireReader &reader)
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.
~Reply() override=default
static constexpr size_t s_cmd_len
static constexpr size_t s_reply_len
void call(yarpdataplayer_console_IDL *ptr)
static constexpr const char * s_help
static constexpr size_t s_tag_len
yarpdataplayer_console_IDL_quit_helper()=default
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.
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
bool readArgs(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.
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
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
yarpdataplayer_console_IDL_repeat_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_tag
static constexpr const char * s_prototype
bool(*)(const bool) funcptr_t
void call(yarpdataplayer_console_IDL *ptr)
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 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.
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 write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
~Reply() override=default
static constexpr size_t s_reply_len
static constexpr size_t s_cmd_len
yarpdataplayer_console_IDL_resume_helper()=default
void call(yarpdataplayer_console_IDL *ptr)
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
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)
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
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_tag_len
bool(*)(const std::int32_t) funcptr_t
static constexpr size_t s_reply_len
yarpdataplayer_console_IDL_setFrame_helper()=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.
static constexpr const char * s_prototype
static constexpr size_t s_cmd_len
static constexpr const char * s_help
static constexpr const char * s_tag
void call(yarpdataplayer_console_IDL *ptr)
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 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 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.
void call(yarpdataplayer_console_IDL *ptr)
yarpdataplayer_console_IDL_setPortName_helper()=default
static constexpr const char * s_help
static constexpr const char * s_prototype
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_reply_len
bool(*)(const std::string &, const std::string &) funcptr_t
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
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readArgs(yarp::os::idl::WireReader &reader)
~Command() override=default
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool readTag(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.
yarpdataplayer_console_IDL_setSpeed_helper()=default
static constexpr size_t s_tag_len
static constexpr const char * s_help
bool(*)(const double) 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_prototype
static constexpr const char * s_tag
void call(yarpdataplayer_console_IDL *ptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr size_t s_reply_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 readTag(yarp::os::idl::WireReader &reader)
~Command() override=default
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 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 const char * s_prototype
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_tag
yarpdataplayer_console_IDL_setStrict_helper()=default
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_cmd_len
bool(*)(const bool) 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_help
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool writeTag(const yarp::os::idl::WireWriter &writer) const
bool writeArgs(const yarp::os::idl::WireWriter &writer) const
~Command() override=default
~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 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
static constexpr const char * s_help
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * s_prototype
yarpdataplayer_console_IDL_step_helper()=default
static constexpr size_t s_tag_len
void call(yarpdataplayer_console_IDL *ptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from 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
~Command() override=default
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.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarpdataplayer_console_IDL_stop_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.
static constexpr size_t s_tag_len
static constexpr size_t s_reply_len
static constexpr const char * s_tag
static constexpr const char * s_prototype
void call(yarpdataplayer_console_IDL *ptr)
static constexpr size_t s_cmd_len
static constexpr const char * s_help
yarpdataplayer_console_IDL Interface.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
virtual bool pause()
Pauses the dataSets.
virtual bool quit()
Quit the module.
virtual bool load(const std::string &path)
Loads a dataset from a path.
virtual std::string getPortName(const std::string &part)
Gets the name of the port associated to the specified part.
virtual bool stop()
Stops the dataSets.
virtual double getSpeed()
Gets the player speed.
virtual std::string getStatus()
Get the status of playing.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual bool step()
Steps the player once.
virtual bool repeat(const bool val=false)
Sets repeat mode.
yarpdataplayer_console_IDL()
virtual bool setPortName(const std::string &part, const std::string &new_name)
Sets the name of the port associated to the specified part.
virtual std::vector< std::string > getAllParts()
Gets the names of all parts loaded.
virtual bool checkProtocolVersion()
virtual bool setStrict(const bool val=false)
Sets strict mode.
virtual bool play()
Plays the dataSets.
virtual bool disable(const std::string &part)
Disable the specified part.
virtual bool enable(const std::string &part)
Enables the specified part.
virtual double getProgress()
Get the progress of the parts.
virtual bool resume()
Resume dataset from where it was paused.
virtual std::int32_t getFrame(const std::string &name)
Gets the frame number the user is requesting.
virtual bool setSpeed(const double speed)
Sets the player speed.
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual bool forward(const std::int32_t steps=5)
Steps forward.
virtual bool setFrame(const std::int32_t frameNum)
Sets the frame number to the user desired frame.
virtual bool backward(const std::int32_t steps=5)
Steps backward.
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
The main, catch-all namespace for YARP.
#define YARP_VERSION_PATCH
#define YARP_VERSION_MAJOR
#define YARP_VERSION_MINOR