33 FileHandler(std::recursive_mutex& mutex,
const std::string&
file,
const std::string& mode)
noexcept;
40 bool null() const noexcept;
41 std::FILE*
file() const noexcept;
42 std::int32_t
fd() const noexcept;
66 std::size_t
write(
const std::string& str)
const;
67 std::size_t
write(
const char& character)
const;
69 static const constexpr char*
m_file{
"CONOUT$"};
71 static const constexpr char*
m_file{
"/dev/tty"};
85 std::string
read()
const;
87 static const constexpr char*
m_file{
"CONIN$"};
89 static const constexpr char*
m_file{
"/dev/tty"};
93extern InputFileHandler&
in;
94extern OutputFileHandler&
out;
95static const FileInitializer file_initializer;
97std::string
ask(
const std::string& str);
FileHandler(std::recursive_mutex &mutex, const std::string &file, const std::string &mode) noexcept
Handle handle() const noexcept
virtual ~FileHandler() noexcept
std::int32_t fd() const noexcept
FileHandler & operator=(const FileHandler &)=delete
FileHandler(const FileHandler &)=delete
FileHandler & operator=(FileHandler &&)=delete
FileHandler(FileHandler &&)=delete
std::recursive_mutex & m_mutex
bool null() const noexcept
std::FILE * file() const noexcept
OutputFileHandler(std::recursive_mutex &io_mutex) noexcept
OutputFileHandler & operator=(OutputFileHandler &&rhs)=delete
~OutputFileHandler() override=default
OutputFileHandler & operator=(const OutputFileHandler &rhs)=delete
OutputFileHandler(OutputFileHandler &&other)=delete
static const constexpr char * m_file
OutputFileHandler(const OutputFileHandler &other)=delete
std::size_t write(const std::string &str) const
std::string ask(const std::string &str)