|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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);
91 #endif // YARP_OS_THINGS_H
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.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
An interface for writing to a network connection.
An interface for reading from a network connection.
The main, catch-all namespace for YARP.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)