BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Types | |
typedef Poco::SharedPtr < StreamConsoleSessionImpl > | Ptr |
Public Types inherited from BeeeOn::ConsoleSessionImpl | |
typedef Poco::SharedPtr < ConsoleSessionImpl > | Ptr |
Public Member Functions | |
StreamConsoleSessionImpl (Poco::Semaphore &semaphore, std::istream &in, std::ostream &out) | |
std::string | readUntil (const char c) override |
std::string | readBytes (const unsigned int length) override |
void | print (const std::string &text, bool newline=true) override |
bool | eof () override |
Additional Inherited Members | |
Protected Member Functions inherited from BeeeOn::ConsoleSessionImpl | |
std::string | iosReadUntil (std::istream &in, const char c) |
std::string | iosReadBytes (std::istream &in, const unsigned int length) |
void | iosPrint (std::ostream &out, const std::string &text, bool newline) |
|
overridevirtual |
Return true if the session cannot read any data anymore.
Reimplemented from BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Print the given string. The newline can be optionally appended.
Implements BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Read the given amount of bytes.
Implements BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Read and return data until the character c is reached.
Implements BeeeOn::ConsoleSessionImpl.