|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_STRINGOUTPUTSTREAM_H
11 #define YARP_OS_STRINGOUTPUTSTREAM_H
45 std::string tmp((
char*)b.
get(), b.
length());
58 const std::string&
str()
const
70 #endif // YARP_OS_STRINGOUTPUTSTREAM_H
void write(const Bytes &b) override
Write a block of bytes to the stream.
virtual void write(char ch)
Write a single byte to the stream.
std::string toString() const
Simple specification of the minimum functions needed from output streams.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
An OutputStream that produces a string.
bool isOk() const override
Check if the stream is ok or in an error state.
A simple abstraction for a block of bytes.
const std::string & str() const
The main, catch-all namespace for YARP.
void close() override
Terminate the stream.