9 #ifndef YARP_OS_THINGS_H
10 #define YARP_OS_THINGS_H
60 return dynamic_cast<T*
>(this->writer);
63 return dynamic_cast<T*
>(this->reader);
65 if (!this->portable) {
66 if (!this->conReader) {
69 this->portable =
new T();
70 if (!this->portable->read(*this->conReader)) {
71 delete this->portable;
72 this->portable =
nullptr;
77 return dynamic_cast<T*
>(this->portable);
An interface for reading from a network connection.
An interface for writing to a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
This is a base class for objects that can be both read from and be written to the YARP network.
Base class for generic things.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.