CppCommon
1.0.4.1
C++ Common Library
|
#include <writer.h>
Public Member Functions | |
Writer () noexcept=default | |
Writer (const Writer &) noexcept=default | |
Writer (Writer &&) noexcept=default | |
virtual | ~Writer () noexcept=default |
Writer & | operator= (const Writer &) noexcept=default |
Writer & | operator= (Writer &&) noexcept=default |
virtual size_t | Write (const void *buffer, size_t size)=0 |
Write a byte buffer base method. More... | |
size_t | Write (const std::string &text) |
Write a text string. More... | |
size_t | Write (const std::vector< std::string > &lines) |
Write text lines. More... | |
virtual void | Flush () |
Flush the writer. More... | |
Writer interface.
Writer interface is based on a write byte buffer method and provides functionality to write bytes buffer, text or text lines.
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
inlinevirtual |
Flush the writer.
Reimplemented in CppCommon::StdError, CppCommon::StdOutput, and CppCommon::File.
size_t CppCommon::Writer::Write | ( | const std::string & | text | ) |
Write a text string.
text | - Text string |
Definition at line 15 of file writer.cpp.
size_t CppCommon::Writer::Write | ( | const std::vector< std::string > & | lines | ) |
Write text lines.
lines | - Text lines |
Definition at line 20 of file writer.cpp.
|
pure virtual |
Write a byte buffer base method.
buffer | - Buffer to write |
size | - Buffer size |
Implemented in CppCommon::StdError, CppCommon::StdOutput, CppCommon::Pipe, and CppCommon::File.