7 #ifndef YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
8 #define YARP_OS_IMPL_BUFFEREDCONNECTIONWRITER_H
62 bool bareMode =
false);
74 void reset(
bool textMode);
88 void clear()
override;
119 void push(
const Bytes& data,
bool copy);
122 bool isTextMode()
const override;
123 bool isBareMode()
const override;
124 bool convertTextMode()
override;
125 void declareSizes(
int argc,
int* argv)
override;
126 void setReplyHandler(
PortReader& reader)
override;
127 void appendInt8(std::int8_t data)
override;
128 void appendInt16(std::int16_t data)
override;
129 void appendInt32(std::int32_t data)
override;
130 void appendInt64(std::int64_t data)
override;
133 void appendBlock(
const char* data,
size_t len)
override;
134 void appendText(
const std::string& str,
const char terminate =
'\n')
override;
135 void appendExternalBlock(
const char* data,
size_t len)
override;
151 virtual void appendBlockCopy(
const Bytes& data);
160 virtual void appendLine(
const std::string& data);
164 size_t length()
const override;
165 size_t headerLength()
const override;
166 size_t length(
size_t index)
const override;
167 const char* data(
size_t index)
const override;
183 virtual size_t dataSize()
const;
185 size_t bufferCount()
const;
205 bool isActive()
const override;
206 bool isError()
const override;
207 void requestDrop()
override;
210 bool dropRequested()
override;
211 void startWrite()
const override;
212 void stopWrite()
const override;
223 void setInitialPoolSize(
size_t size);
246 bool applyConvertTextMode();
247 bool applyConvertTextMode()
const;
260 bool convertTextModePending;
266 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.