|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_IMPL_STREAMCONNECTIONREADER_H
11 #define YARP_OS_IMPL_STREAMCONNECTIONREADER_H
33 class BufferedConnectionWriter;
48 void setProtocol(
Protocol* protocol);
53 #ifndef YARP_NO_DEPRECATED // Since YARP 3.2
55 virtual std::string expectString(
int len);
57 virtual std::string expectLine();
58 virtual void flushWriter();
62 bool setSize(
size_t len)
override;
63 size_t getSize()
const override;
64 bool pushInt(
int x)
override;
65 std::int8_t expectInt8()
override;
66 std::int16_t expectInt16()
override;
67 std::int32_t expectInt32()
override;
68 std::int64_t expectInt64()
override;
71 bool expectBlock(
char* data,
size_t len)
override;
72 std::string expectText(
const char terminatingChar)
override;
73 bool isTextMode()
const override;
74 bool isBareMode()
const override;
75 bool convertTextMode()
override;
80 bool isError()
const override;
81 bool isActive()
const override;
84 void requestDrop()
override;
86 void setParentConnectionReader(
ConnectionReader* parentConnectionReader)
override;
91 template <
typename T,
typename NetT>
109 bool convertedTextMode;
119 #endif // YARP_OS_IMPL_STREAMCONNECTIONREADER_H
A stream which can be asked to perform bidirectional communication.
virtual std::string expectString()
Read a string from the network connection.
A simple collection of objects that can be described and transmitted in a portable way.
This is a base class for objects that can be both read from and be written to the YARP network.
A base class for nested structures that can be searched.
bool isValid()
Check if time is valid (non-zero).
A helper for creating cached object descriptions.
Lets Readable objects read from the underlying InputStream associated with the connection between two...
Information about a connection between two ports.
Connection choreographer.
An interface for writing to a network connection.
A simple abstraction for a block of bytes.
An interface for reading from a network connection.
The main, catch-all namespace for YARP.