7 #ifndef YARP_OS_IMPL_STREAMCONNECTIONREADER_H
8 #define YARP_OS_IMPL_STREAMCONNECTIONREADER_H
30 class BufferedConnectionWriter;
45 void setProtocol(
Protocol* protocol);
50 #ifndef YARP_NO_DEPRECATED
52 virtual std::string expectString(
int len);
54 virtual std::string expectLine();
55 virtual void flushWriter();
59 bool setSize(
size_t len)
override;
60 size_t getSize()
const override;
61 bool pushInt(
int x)
override;
62 std::int8_t expectInt8()
override;
63 std::int16_t expectInt16()
override;
64 std::int32_t expectInt32()
override;
65 std::int64_t expectInt64()
override;
68 bool expectBlock(
char* data,
size_t len)
override;
69 std::string expectText(
const char terminatingChar)
override;
70 bool isTextMode()
const override;
71 bool isBareMode()
const override;
72 bool convertTextMode()
override;
77 bool isError()
const override;
78 bool isActive()
const override;
81 void requestDrop()
override;
83 void setParentConnectionReader(
ConnectionReader* parentConnectionReader)
override;
88 template <
typename T,
typename NetT>
106 bool convertedTextMode;
A simple collection of objects that can be described and transmitted in a portable way.
A simple abstraction for a block of bytes.
An interface for reading from a network connection.
virtual std::string expectString()
Read a string from the network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Information about a connection between two ports.
A base class for nested structures that can be searched.
A stream which can be asked to perform bidirectional communication.
A helper for creating cached object descriptions.
Connection choreographer.
Lets Readable objects read from the underlying InputStream associated with the connection between two...
bool isValid()
Check if time is valid (non-zero).
The main, catch-all namespace for YARP.