7#ifndef YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
8#define YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
63 bool bareMode =
false);
75 void reset(
bool textMode);
89 void clear()
override;
120 void push(
const Bytes& data,
bool copy);
123 bool isTextMode()
const override;
124 bool isBareMode()
const override;
125 bool convertTextMode()
override;
126 void declareSizes(
int argc,
int* argv)
override;
127 void setReplyHandler(
PortReader& reader)
override;
128 void appendInt8(std::int8_t data)
override;
129 void appendInt16(std::int16_t data)
override;
130 void appendInt32(std::int32_t data)
override;
131 void appendInt64(std::int64_t data)
override;
134 void appendBlock(
const char* data,
size_t len)
override;
135 void appendText(
const std::string& str,
const char terminate =
'\n')
override;
136 void appendExternalBlock(
const char* data,
size_t len)
override;
152 virtual void appendBlockCopy(
const Bytes& data);
161 virtual void appendLine(
const std::string& data);
165 size_t length()
const override;
166 size_t headerLength()
const override;
167 size_t length(
size_t index)
const override;
168 const char* data(
size_t index)
const override;
184 virtual size_t dataSize()
const;
186 size_t bufferCount()
const;
205 bool isValid()
const override;
206 bool isActive()
const override;
207 bool isError()
const override;
208 void requestDrop()
override;
211 bool dropRequested()
override;
212 void startWrite()
const override;
213 void stopWrite()
const override;
225 void setInitialPoolSize(
size_t size);
248 bool applyConvertTextMode();
249 bool applyConvertTextMode()
const;
262 bool convertTextModePending;
268 size_t initialPoolSize;
std::string toString(const T &value)
convert an arbitrary type to string.
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
An interface for writing to a network connection.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
Simple specification of the minimum functions needed from output streams.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
This is a base class for objects that can be both read from and be written to the YARP network.
Minimal requirements for an efficient Writer.
A helper for creating cached object descriptions.
The components from which ports and connections are built.
constexpr size_t BUFFERED_CONNECTION_INITIAL_POOL_SIZE
An interface to the operating system, including Port based communication.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.