17 const std::string& device_type,
18 const std::string& device_configuration,
19 const std::string& device_extra_info) :
21 device_name(device_name),
22 device_type(device_type),
23 device_configuration(device_configuration),
24 device_extra_info(device_extra_info)
31 if (!read_device_name(reader)) {
34 if (!read_device_type(reader)) {
37 if (!read_device_configuration(reader)) {
40 if (!read_device_extra_info(reader)) {
65 if (!write_device_name(writer)) {
68 if (!write_device_type(writer)) {
71 if (!write_device_configuration(writer)) {
74 if (!write_device_extra_info(writer)) {
bool read(yarp::os::idl::WireReader &reader) override
std::string device_configuration
configuration parameters of the device
DeviceDescriptionData()=default
std::string device_type
type of the device
std::string device_extra_info
user defined extra information
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::string toString() const
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string device_name
name of the device
A simple collection of objects that can be described and transmitted in a portable way.
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.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeString(const std::string &str, bool skip_tag=false) const
For streams capable of holding different kinds of content, check what they actually have.