43 if (!writer.
writeString(
"getRemoteProtocolVersion")) {
57 if (!helper_proto.read(connection)) {
67 if(!
yarp().canWrite()) {
68 yError(
" Missing server method yarpdataplayer_console_IDL::getRemoteProtocolVersion");
73 return helper.helper_proto;}
84 if (remproto.protocol_version != locproto.protocol_version)
86 yCError(SERVICE_LOG_COMPONENT) <<
"Invalid communication protocol.";
87 yCError(SERVICE_LOG_COMPONENT) <<
"Local Protocol Version: " << locproto.toString();
88 yCError(SERVICE_LOG_COMPONENT) <<
"Remote Protocol Version: " << remproto.toString();
158 static constexpr const char*
s_tag{
"step"};
162 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::step()"};
164 "Steps the player once. The player will be stepped\n"
165 "until all parts have sent data\n"
166 "@return true/false on success/failure"
225 static constexpr const char*
s_tag{
"setFrame"};
229 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setFrame(const std::int32_t frameNum)"};
231 "Sets the frame number to the user desired frame.\n"
232 "@param frameNum specifies the frame number the user\n"
233 " would like to skip to\n"
234 "@return true/false on success/failure"
293 static constexpr const char*
s_tag{
"getFrame"};
297 static constexpr const char*
s_prototype{
"std::int32_t yarpdataplayer_console_IDL::getFrame(const std::string& name)"};
299 "Gets the frame number the user is requesting\n"
300 "@param name specifies the name of the data to modify\n"
301 " would like to skip to\n"
302 "@return i32 returns the current frame index"
361 static constexpr const char*
s_tag{
"load"};
365 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::load(const std::string& path)"};
367 "Loads a dataset from a path\n"
368 "@return true/false on success/failure"
422 static constexpr const char*
s_tag{
"play"};
426 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::play()"};
428 "Plays the dataSets\n"
429 "@return true/false on success/failure"
483 static constexpr const char*
s_tag{
"pause"};
487 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::pause()"};
489 "Pauses the dataSets\n"
490 "@return true/false on success/failure"
544 static constexpr const char*
s_tag{
"stop"};
548 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::stop()"};
550 "Stops the dataSets\n"
551 "@return true/false on success/failure"
610 static constexpr const char*
s_tag{
"enable"};
614 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::enable(const std::string& part)"};
616 "Enables the specified part.\n"
617 "@param name specifies the name of the loaded data\n"
618 "@return true/false on success/failure"
677 static constexpr const char*
s_tag{
"disable"};
681 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::disable(const std::string& part)"};
683 "Disable the specified part.\n"
684 "@param name specifies the name of the loaded data\n"
685 "@return true/false on success/failure"
739 static constexpr const char*
s_tag{
"getAllParts"};
743 static constexpr const char*
s_prototype{
"std::vector<std::string> yarpdataplayer_console_IDL::getAllParts()"};
745 "Gets the names of all parts loaded.\n"
746 "@return list of names of the loaded parts."
805 static constexpr const char*
s_tag{
"getPortName"};
809 static constexpr const char*
s_prototype{
"std::string yarpdataplayer_console_IDL::getPortName(const std::string& part)"};
811 "Gets the name of the port associated to the specified part\n"
812 "@param name specifies the name of the data to modify\n"
867 using funcptr_t = bool (*)(
const std::string&,
const std::string&);
873 static constexpr const char*
s_tag{
"setPortName"};
877 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setPortName(const std::string& part, const std::string& new_name)"};
879 "Sets the name of the port associated to the specified part\n"
880 "@param part specifies the name of the data to modify\n"
881 "@param new_name specifies the new name to assign to the port\n"
882 "@return true/false on success/failure"
941 static constexpr const char*
s_tag{
"setSpeed"};
945 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setSpeed(const double speed)"};
947 "Sets the player speed\n"
948 "@param speed specifies\n"
949 "@return true/false on success/failure"
1003 static constexpr const char*
s_tag{
"getSpeed"};
1007 static constexpr const char*
s_prototype{
"double yarpdataplayer_console_IDL::getSpeed()"};
1009 "Gets the player speed\n"
1010 "@return value of the player speed"
1069 static constexpr const char*
s_tag{
"repeat"};
1073 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::repeat(const bool val)"};
1075 "Sets repeat mode\n"
1076 "@param val if true repeat mode is active.\n"
1077 "@return true/false on success/failure"
1136 static constexpr const char*
s_tag{
"setStrict"};
1140 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::setStrict(const bool val)"};
1142 "Sets strict mode\n"
1143 "@param val if true strict mode is active.\n"
1144 "@return true/false on success/failure"
1203 static constexpr const char*
s_tag{
"forward"};
1207 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::forward(const std::int32_t steps)"};
1210 "@param steps number of steps to go forward (default=5).\n"
1211 "@return true/false on success/failure"
1270 static constexpr const char*
s_tag{
"backward"};
1274 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::backward(const std::int32_t steps)"};
1277 "@param steps number of steps to go backward (default=5).\n"
1278 "@return true/false on success/failure"
1332 static constexpr const char*
s_tag{
"getProgress"};
1336 static constexpr const char*
s_prototype{
"double yarpdataplayer_console_IDL::getProgress()"};
1338 "Get the progress of the parts\n"
1339 "@return the progress of the parts"
1393 static constexpr const char*
s_tag{
"getStatus"};
1397 static constexpr const char*
s_prototype{
"std::string yarpdataplayer_console_IDL::getStatus()"};
1399 "Get the status of playing\n"
1400 "@return the status (playing, paused, stopped)"
1454 static constexpr const char*
s_tag{
"resume"};
1458 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::resume()"};
1460 "Resume dataset from where it was paused\n"
1461 "@return true/false on success/failure"
1515 static constexpr const char*
s_tag{
"quit"};
1519 static constexpr const char*
s_prototype{
"bool yarpdataplayer_console_IDL::quit()"};
1521 "Quit the module.\n"
1522 "@return true/false on success/failure"
1543 return write(writer);
1553 return read(reader);
1558 if (!writeTag(writer)) {
1561 if (!writeArgs(writer)) {
1582 if (!readTag(reader)) {
1585 if (!readArgs(reader)) {
1616 return write(writer);
1622 return read(reader);
1647 if (!reader.
readBool(return_helper)) {
1686 return write(writer);
1696 return read(reader);
1701 if (!writeTag(writer)) {
1704 if (!writeArgs(writer)) {
1728 if (!readTag(reader)) {
1731 if (!readArgs(reader)) {
1756 if (!reader.
readI32(frameNum)) {
1770 return write(writer);
1776 return read(reader);
1801 if (!reader.
readBool(return_helper)) {
1840 return write(writer);
1850 return read(reader);
1855 if (!writeTag(writer)) {
1858 if (!writeArgs(writer)) {
1882 if (!readTag(reader)) {
1885 if (!readArgs(reader)) {
1924 return write(writer);
1930 return read(reader);
1939 if (!writer.
writeI32(return_helper)) {
1955 if (!reader.
readI32(return_helper)) {
1994 return write(writer);
2004 return read(reader);
2009 if (!writeTag(writer)) {
2012 if (!writeArgs(writer)) {
2036 if (!readTag(reader)) {
2039 if (!readArgs(reader)) {
2078 return write(writer);
2084 return read(reader);
2109 if (!reader.
readBool(return_helper)) {
2138 return write(writer);
2148 return read(reader);
2153 if (!writeTag(writer)) {
2156 if (!writeArgs(writer)) {
2177 if (!readTag(reader)) {
2180 if (!readArgs(reader)) {
2211 return write(writer);
2217 return read(reader);
2242 if (!reader.
readBool(return_helper)) {
2271 return write(writer);
2281 return read(reader);
2286 if (!writeTag(writer)) {
2289 if (!writeArgs(writer)) {
2310 if (!readTag(reader)) {
2313 if (!readArgs(reader)) {
2344 return write(writer);
2350 return read(reader);
2375 if (!reader.
readBool(return_helper)) {
2404 return write(writer);
2414 return read(reader);
2419 if (!writeTag(writer)) {
2422 if (!writeArgs(writer)) {
2443 if (!readTag(reader)) {
2446 if (!readArgs(reader)) {
2477 return write(writer);
2483 return read(reader);
2508 if (!reader.
readBool(return_helper)) {
2547 return write(writer);
2557 return read(reader);
2562 if (!writeTag(writer)) {
2565 if (!writeArgs(writer)) {
2589 if (!readTag(reader)) {
2592 if (!readArgs(reader)) {
2631 return write(writer);
2637 return read(reader);
2662 if (!reader.
readBool(return_helper)) {
2701 return write(writer);
2711 return read(reader);
2716 if (!writeTag(writer)) {
2719 if (!writeArgs(writer)) {
2743 if (!readTag(reader)) {
2746 if (!readArgs(reader)) {
2785 return write(writer);
2791 return read(reader);
2816 if (!reader.
readBool(return_helper)) {
2845 return write(writer);
2855 return read(reader);
2860 if (!writeTag(writer)) {
2863 if (!writeArgs(writer)) {
2884 if (!readTag(reader)) {
2887 if (!readArgs(reader)) {
2918 return write(writer);
2924 return read(reader);
2936 for (
const auto& _item : return_helper) {
2962 if constexpr (expected_tag != 0) {
2963 if (_csize != 0 && _etype.
code != expected_tag) {
2967 return_helper.resize(_csize);
2968 for (
size_t _i = 0; _i < _csize; ++_i) {
3014 return write(writer);
3024 return read(reader);
3029 if (!writeTag(writer)) {
3032 if (!writeArgs(writer)) {
3056 if (!readTag(reader)) {
3059 if (!readArgs(reader)) {
3098 return write(writer);
3104 return read(reader);
3169 return write(writer);
3179 return read(reader);
3184 if (!writeTag(writer)) {
3187 if (!writeArgs(writer)) {
3214 if (!readTag(reader)) {
3217 if (!readArgs(reader)) {
3264 return write(writer);
3270 return read(reader);
3295 if (!reader.
readBool(return_helper)) {
3334 return write(writer);
3344 return read(reader);
3349 if (!writeTag(writer)) {
3352 if (!writeArgs(writer)) {
3376 if (!readTag(reader)) {
3379 if (!readArgs(reader)) {
3418 return write(writer);
3424 return read(reader);
3449 if (!reader.
readBool(return_helper)) {
3478 return write(writer);
3488 return read(reader);
3493 if (!writeTag(writer)) {
3496 if (!writeArgs(writer)) {
3517 if (!readTag(reader)) {
3520 if (!readArgs(reader)) {
3551 return write(writer);
3557 return read(reader);
3621 return write(writer);
3631 return read(reader);
3636 if (!writeTag(writer)) {
3639 if (!writeArgs(writer)) {
3663 if (!readTag(reader)) {
3666 if (!readArgs(reader)) {
3700 return write(writer);
3706 return read(reader);
3731 if (!reader.
readBool(return_helper)) {
3770 return write(writer);
3780 return read(reader);
3785 if (!writeTag(writer)) {
3788 if (!writeArgs(writer)) {
3812 if (!readTag(reader)) {
3815 if (!readArgs(reader)) {
3849 return write(writer);
3855 return read(reader);
3880 if (!reader.
readBool(return_helper)) {
3919 return write(writer);
3929 return read(reader);
3934 if (!writeTag(writer)) {
3937 if (!writeArgs(writer)) {
3961 if (!readTag(reader)) {
3964 if (!readArgs(reader)) {
3998 return write(writer);
4004 return read(reader);
4029 if (!reader.
readBool(return_helper)) {
4068 return write(writer);
4078 return read(reader);
4083 if (!writeTag(writer)) {
4086 if (!writeArgs(writer)) {
4110 if (!readTag(reader)) {
4113 if (!readArgs(reader)) {
4147 return write(writer);
4153 return read(reader);
4178 if (!reader.
readBool(return_helper)) {
4207 return write(writer);
4217 return read(reader);
4222 if (!writeTag(writer)) {
4225 if (!writeArgs(writer)) {
4246 if (!readTag(reader)) {
4249 if (!readArgs(reader)) {
4280 return write(writer);
4286 return read(reader);
4340 return write(writer);
4350 return read(reader);
4355 if (!writeTag(writer)) {
4358 if (!writeArgs(writer)) {
4379 if (!readTag(reader)) {
4382 if (!readArgs(reader)) {
4413 return write(writer);
4419 return read(reader);
4473 return write(writer);
4483 return read(reader);
4488 if (!writeTag(writer)) {
4491 if (!writeArgs(writer)) {
4512 if (!readTag(reader)) {
4515 if (!readArgs(reader)) {
4546 return write(writer);
4552 return read(reader);
4577 if (!reader.
readBool(return_helper)) {
4606 return write(writer);
4616 return read(reader);
4621 if (!writeTag(writer)) {
4624 if (!writeArgs(writer)) {
4645 if (!readTag(reader)) {
4648 if (!readArgs(reader)) {
4679 return write(writer);
4685 return read(reader);
4710 if (!reader.
readBool(return_helper)) {
4725 yarp().setOwner(*
this);
4730 if (!
yarp().canWrite()) {
4734 bool ok =
yarp().write(helper, helper);
4735 return ok ? helper.reply.return_helper :
bool{};
4740 if (!
yarp().canWrite()) {
4744 bool ok =
yarp().write(helper, helper);
4745 return ok ? helper.reply.return_helper :
bool{};
4750 if (!
yarp().canWrite()) {
4754 bool ok =
yarp().write(helper, helper);
4755 return ok ? helper.reply.return_helper : std::int32_t{};
4760 if (!
yarp().canWrite()) {
4764 bool ok =
yarp().write(helper, helper);
4765 return ok ? helper.reply.return_helper :
bool{};
4770 if (!
yarp().canWrite()) {
4774 bool ok =
yarp().write(helper, helper);
4775 return ok ? helper.reply.return_helper :
bool{};
4780 if (!
yarp().canWrite()) {
4784 bool ok =
yarp().write(helper, helper);
4785 return ok ? helper.reply.return_helper :
bool{};
4790 if (!
yarp().canWrite()) {
4794 bool ok =
yarp().write(helper, helper);
4795 return ok ? helper.reply.return_helper :
bool{};
4800 if (!
yarp().canWrite()) {
4804 bool ok =
yarp().write(helper, helper);
4805 return ok ? helper.reply.return_helper :
bool{};
4810 if (!
yarp().canWrite()) {
4814 bool ok =
yarp().write(helper, helper);
4815 return ok ? helper.reply.return_helper :
bool{};
4820 if (!
yarp().canWrite()) {
4824 bool ok =
yarp().write(helper, helper);
4825 return ok ? helper.reply.return_helper : std::vector<std::string>{};
4830 if (!
yarp().canWrite()) {
4834 bool ok =
yarp().write(helper, helper);
4835 return ok ? helper.reply.return_helper : std::string{};
4840 if (!
yarp().canWrite()) {
4844 bool ok =
yarp().write(helper, helper);
4845 return ok ? helper.reply.return_helper :
bool{};
4850 if (!
yarp().canWrite()) {
4854 bool ok =
yarp().write(helper, helper);
4855 return ok ? helper.reply.return_helper :
bool{};
4860 if (!
yarp().canWrite()) {
4864 bool ok =
yarp().write(helper, helper);
4865 return ok ? helper.reply.return_helper :
double{};
4870 if (!
yarp().canWrite()) {
4874 bool ok =
yarp().write(helper, helper);
4875 return ok ? helper.reply.return_helper :
bool{};
4880 if (!
yarp().canWrite()) {
4884 bool ok =
yarp().write(helper, helper);
4885 return ok ? helper.reply.return_helper :
bool{};
4890 if (!
yarp().canWrite()) {
4894 bool ok =
yarp().write(helper, helper);
4895 return ok ? helper.reply.return_helper :
bool{};
4900 if (!
yarp().canWrite()) {
4904 bool ok =
yarp().write(helper, helper);
4905 return ok ? helper.reply.return_helper :
bool{};
4910 if (!
yarp().canWrite()) {
4914 bool ok =
yarp().write(helper, helper);
4915 return ok ? helper.reply.return_helper :
double{};
4920 if (!
yarp().canWrite()) {
4924 bool ok =
yarp().write(helper, helper);
4925 return ok ? helper.reply.return_helper : std::string{};
4930 if (!
yarp().canWrite()) {
4934 bool ok =
yarp().write(helper, helper);
4935 return ok ? helper.reply.return_helper :
bool{};
4940 if (!
yarp().canWrite()) {
4944 bool ok =
yarp().write(helper, helper);
4945 return ok ? helper.reply.return_helper :
bool{};
4951 bool showAll = (functionName ==
"--all");
4952 std::vector<std::string> helpString;
4954 helpString.emplace_back(
"*** Available commands:");
4977 helpString.emplace_back(
"help");
5067 if (functionName ==
"help") {
5068 helpString.emplace_back(
"std::vector<std::string> help(const std::string& functionName = \"--all\")");
5069 helpString.emplace_back(
"Return list of available commands, or help message for a specific function");
5070 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");
5071 helpString.emplace_back(
"@return list of strings (one string per line)");
5074 if (helpString.empty()) {
5075 helpString.emplace_back(
"Command not found");
5083 constexpr size_t max_tag_len = 1;
5093 std::string tag = reader.
readTag(1);
5094 bool direct = (tag ==
"__direct__");
5098 while (tag_len <= max_tag_len && !reader.
isError()) {
5099 if(tag ==
"getRemoteProtocolVersion") {
5106 auto proto = getLocalProtocolVersion();
5112 if (!writer.
write(proto)) {
5449 if (tag ==
"help") {
5450 std::string functionName;
5452 functionName =
"--all";
5454 auto help_strings = help(functionName);
5460 if (!writer.
writeTag(
"many", 1, 0)) {
5466 for (
const auto& help_string : help_strings) {
5482 std::string next_tag = reader.
readTag(1);
5483 if (next_tag.empty()) {
5486 tag.append(
"_").append(next_tag);
5487 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