PLaSK library
|
Base class for output (stream). More...
#include <plask/utils/xml/writer.hpp>
Public Member Functions | |
virtual | ~Output () |
virtual void | write (const char *buffer, std::size_t n)=0 |
Write bytes from buffer. | |
template<int n> | |
void | puts (const char(&str)[n]) |
Write n - 1 bytes from str . | |
virtual void | put (char c) |
Write one character c . | |
void | newline () |
Write new line character (end-line) to this output. | |
Base class for output (stream).
Definition at line 51 of file writer.hpp.
|
inlinevirtual |
Definition at line 53 of file writer.hpp.
|
inline |
Write new line character (end-line) to this output.
Definition at line 82 of file writer.hpp.
Write one character c
.
Default implementation calls: write(&c, 1);
c | character to write |
Reimplemented in plask::OStreamOutput< ostream_t >.
Definition at line 77 of file writer.hpp.
Write n
- 1 bytes from str
.
Useful to writing const char[] literals.
str | string, typically const char[] literal |
Definition at line 69 of file writer.hpp.
Write
bytes from buffer.
buffer | buffer with data with size n or more |
n | number of bytes to write |
Implemented in plask::OStreamOutput< ostream_t >, and plask::CFileOutput.