#include <cpp-terminal/private/file.hpp>
|
static const constexpr char * | m_file {"CONOUT$"} |
|
Definition at line 56 of file file.hpp.
◆ OutputFileHandler() [1/3]
Term::Private::OutputFileHandler::OutputFileHandler |
( |
std::recursive_mutex & | io_mutex | ) |
|
|
explicitnoexcept |
Definition at line 162 of file file.cpp.
164{
165
166}
167catch(...)
168{
170}
FileHandler(std::recursive_mutex &mutex, const std::string &file, const std::string &mode) noexcept
static const constexpr char * m_file
void ExceptionHandler(const ExceptionDestination &destination=ExceptionDestination::StdErr) noexcept
◆ OutputFileHandler() [2/3]
Term::Private::OutputFileHandler::OutputFileHandler |
( |
const OutputFileHandler & | other | ) |
|
|
delete |
◆ OutputFileHandler() [3/3]
◆ ~OutputFileHandler()
Term::Private::OutputFileHandler::~OutputFileHandler |
( |
| ) |
|
|
overridedefault |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ write() [1/2]
std::size_t Term::Private::OutputFileHandler::write |
( |
const char & | character | ) |
const |
Definition at line 114 of file file.cpp.
115{
116#if defined(_WIN32)
117 DWORD written{0};
119 return static_cast<std::size_t>(written);
120#else
121 ssize_t written{0};
123 return static_cast<std::size_t>(written);
124#endif
125}
void throw_exception(const std::string &str={}) const
Errno & check_if(const bool &ret) noexcept
Handle handle() const noexcept
std::int32_t fd() const noexcept
std::size_t write(const std::string &str) const
WindowsError & check_if(const bool &ret) noexcept
void throw_exception(const std::string &str=std::string()) const
◆ write() [2/2]
std::size_t Term::Private::OutputFileHandler::write |
( |
const std::string & | str | ) |
const |
Definition at line 101 of file file.cpp.
102{
103#if defined(_WIN32)
104 DWORD written{0};
106 return static_cast<std::size_t>(written);
107#else
108 ssize_t written{0};
110 return static_cast<std::size_t>(written);
111#endif
112}
◆ m_file
const constexpr char* Term::Private::OutputFileHandler::m_file {"CONOUT$"} |
|
staticconstexpr |
The documentation for this class was generated from the following files: