|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
33 bool ok = head.
read(connection);
35 ok = body.
read(connection);
46 bool ok = head.
write(connection);
48 ok = body.
write(connection);
This is a base class for objects that can be both read from and be written to the YARP network.
static bool readPair(ConnectionReader &connection, Portable &head, Portable &body)
Reads an object pair from a network connection.
bool write(ConnectionWriter &writer) const override=0
Write this object to a network connection.
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
An interface for writing to a network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
An interface for reading from a network connection.
static bool writePair(ConnectionWriter &connection, const Portable &head, const Portable &body)
Writes an object pair to a network connection.
bool read(ConnectionReader &reader) override=0
Read this object from a network connection.