10 #ifndef YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
11 #define YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
65 bool bareMode =
false);
77 void reset(
bool textMode);
91 void clear()
override;
122 void push(
const Bytes& data,
bool copy);
125 bool isTextMode()
const override;
126 bool isBareMode()
const override;
127 bool convertTextMode()
override;
128 void declareSizes(
int argc,
int* argv)
override;
129 void setReplyHandler(
PortReader& reader)
override;
130 void appendInt8(std::int8_t data)
override;
131 void appendInt16(std::int16_t data)
override;
132 void appendInt32(std::int32_t data)
override;
133 void appendInt64(std::int64_t data)
override;
136 void appendBlock(
const char* data,
size_t len)
override;
137 void appendText(
const std::string& str,
const char terminate =
'\n')
override;
138 void appendExternalBlock(
const char* data,
size_t len)
override;
154 virtual void appendBlockCopy(
const Bytes& data);
163 virtual void appendLine(
const std::string& data);
167 size_t length()
const override;
168 size_t headerLength()
const override;
169 size_t length(
size_t index)
const override;
170 const char* data(
size_t index)
const override;
186 virtual size_t dataSize()
const;
188 size_t bufferCount()
const;
208 bool isActive()
const override;
209 bool isError()
const override;
210 void requestDrop()
override;
213 bool dropRequested()
override;
214 void startWrite()
const override;
215 void stopWrite()
const override;
226 void setInitialPoolSize(
size_t size);
249 bool applyConvertTextMode();
250 bool applyConvertTextMode()
const;
263 bool convertTextModePending;
269 size_t initialPoolSize;
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.
std::string toString(const T &value)
convert an arbitrary type to string.
bool isValid()
Check if time is valid (non-zero).
constexpr size_t BUFFERED_CONNECTION_INITIAL_POOL_SIZE
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.