|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
20 #ifndef DOXYGEN_SHOULD_SKIP_THIS
21 class DummyConnectorReader :
32 bufWriter->
reset(tmode);
38 class DummyConnector::Private
42 DummyConnectorReader reader;
49 reader.altWriter = &writer;
51 reader.tmode = textMode;
54 void setTextMode(
bool textmode)
57 writer.reset(textMode);
58 reader.tmode = textMode;
63 writer.reset(textMode);
75 std::string s = writer.toString();
79 reader.reset(sis,
nullptr, r, s.length(), textMode);
80 reader.altWriter = ((replyWriter !=
nullptr) ? replyWriter : &writer);
87 writer.reset(textMode);
90 #endif // DOXYGEN_SHOULD_SKIP_THIS
104 mPriv->setTextMode(textmode);
109 return mPriv->getCleanWriter();
114 return mPriv->getWriter();
119 return mPriv->getReader(replywriter);
void reset(bool textMode)
Completely clear the writer and start afresh.
A helper for creating cached object descriptions.
void reset()
Reset and clear the current ConnectionWriter.
Lets Readable objects read from the underlying InputStream associated with the connection between two...
Information about a connection between two ports.
ConnectionReader & getReader(ConnectionWriter *replyWriter=nullptr)
Get the dummy ConnectionReader loaded with whatever was written the ConnectionWriter since it was las...
DummyConnector()
Default constructor.
An interface for writing to a network connection.
ConnectionWriter & getWriter()
Get the dummy ConnectionWriter loaded with whatever was written the ConnectionWriter since it was las...
ConnectionWriter & getCleanWriter()
Get a clean/empty dummy ConnectionWriter.
An interface for reading from a network connection.
void setTextMode(bool textmode)
Set the textMode of the dummy connection.
An interface to the operating system, including Port based communication.
virtual ~DummyConnector()
Destructor.
The components from which ports and connections are built.