23 const std::vector<yarp::math::FrameTransform>& transforms_list) :
26 transforms_list(transforms_list)
33 if (!read_retvalue(reader)) {
36 if (!read_transforms_list(reader)) {
55 if (!write_retvalue(writer)) {
58 if (!write_transforms_list(writer)) {
98 yarp().setOwner(*
this);
124 return obj !=
nullptr;
143 if (group == 0 && is_dirty) {
152 mark_dirty_retvalue();
160 return obj->retvalue;
178 will_set_transforms_list();
180 mark_dirty_transforms_list();
182 did_set_transforms_list();
188 will_set_transforms_list();
189 obj->transforms_list[index] = elem;
190 mark_dirty_transforms_list();
192 did_set_transforms_list();
198 return obj->transforms_list;
239 writer.
writeString(
"send: 'help' or 'patch (param1 val1) (param2 val2)'");
254 if (!writer.
writeTag(
"many", 1, 0)) {
262 if (field ==
"retvalue") {
270 if (field ==
"transforms_list") {
274 if (!writer.
writeString(
"std::vector<yarp::math::FrameTransform> transforms_list")) {
288 bool have_act =
false;
289 if (tag !=
"patch") {
290 if (((len - 1) % 2) != 0) {
293 len = 1 + ((len - 1) / 2);
297 for (
int i = 1; i < len; ++i) {
311 if (key ==
"retvalue") {
313 if (!obj->nested_read_retvalue(reader)) {
317 }
else if (key ==
"transforms_list") {
318 will_set_transforms_list();
319 if (!obj->nested_read_transforms_list(reader)) {
322 did_set_transforms_list();
350 if (is_dirty_retvalue) {
360 if (!obj->nested_write_retvalue(writer)) {
364 if (is_dirty_transforms_list) {
374 if (!obj->nested_write_transforms_list(writer)) {
382 void return_getAllTransforms::Editor::communicate()
387 if (
yarp().canWrite()) {
394 void return_getAllTransforms::Editor::mark_dirty()
400 void return_getAllTransforms::Editor::mark_dirty_retvalue()
402 if (is_dirty_retvalue) {
406 is_dirty_retvalue =
true;
411 void return_getAllTransforms::Editor::mark_dirty_transforms_list()
413 if (is_dirty_transforms_list) {
417 is_dirty_transforms_list =
true;
422 void return_getAllTransforms::Editor::dirty_flags(
bool flag)
425 is_dirty_retvalue = flag;
426 is_dirty_transforms_list = flag;
427 dirty_count = flag ? 2 : 0;
476 for (
size_t _i4 = 0; _i4 < _size0; ++_i4) {
511 for (
size_t _i10 = 0; _i10 < _size6; ++_i10) {
A simple collection of objects that can be described and transmitted in a portable way.
bool read(ConnectionReader &reader) override
Set the bottle's value based on input from a network connection.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
bool setOwner(yarp::os::PortReader &owner)
Set the owner of this WireLink.
yarp::os::WireLink & yarp()
Get YARP state associated with this object.
IDL-friendly connection reader.
bool readNested(WirePortable &obj)
bool readString(std::string &str, bool *is_vocab=nullptr)
void readListBegin(yarp::os::idl::WireState &nstate, std::uint32_t &len)
IDL-friendly connection writer.
bool writeVocab32(yarp::conf::vocab32_t x) const
bool writeBool(bool x) const
bool writeListHeader(int len) const
bool writeTag(const char *tag, int split, int len) const
bool writeListBegin(int tag, std::uint32_t len) const
bool writeListEnd() const
bool writeString(const std::string &tag) const
bool writeNested(const WirePortable &obj) const
bool isValid()
Check if time is valid (non-zero).
The main, catch-all namespace for YARP.