5 #include <Poco/AtomicCounter.h>
6 #include <Poco/Semaphore.h>
7 #include <Poco/SharedPtr.h>
9 #include "io/Console.h"
15 typedef Poco::SharedPtr<StreamConsoleSessionImpl> Ptr;
18 Poco::Semaphore &semaphore,
23 std::string
readUntil(
const char c)
override;
24 std::string
readBytes(
const unsigned int length)
override;
25 void print(
const std::string &text,
bool newline =
true)
override;
29 Poco::Semaphore &m_semaphore;
36 typedef Poco::SharedPtr<StreamConsole> Ptr;
40 void close()
override;
56 Poco::Semaphore m_semaphore;
60 Poco::AtomicCounter m_close;
std::string readBytes(const unsigned int length) override
Definition: StreamConsole.cpp:29
void print(const std::string &text, bool newline=true) override
Definition: StreamConsole.cpp:34
bool eof() override
Definition: StreamConsole.cpp:39
Definition: StreamConsole.h:13
Definition: StreamConsole.h:34
ConsoleSessionImpl::Ptr openSession() override
Definition: StreamConsole.cpp:57
std::string readUntil(const char c) override
Definition: StreamConsole.cpp:24
Definition: Console.h:109