BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::StreamConsoleSessionImpl Class Reference
Inheritance diagram for BeeeOn::StreamConsoleSessionImpl:
BeeeOn::ConsoleSessionImpl

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)
 

Member Function Documentation

bool StreamConsoleSessionImpl::eof ( )
overridevirtual

Return true if the session cannot read any data anymore.

Reimplemented from BeeeOn::ConsoleSessionImpl.

void StreamConsoleSessionImpl::print ( const std::string &  text,
bool  newline = true 
)
overridevirtual

Print the given string. The newline can be optionally appended.

Implements BeeeOn::ConsoleSessionImpl.

string StreamConsoleSessionImpl::readBytes ( const unsigned int  length)
overridevirtual

Read the given amount of bytes.

Implements BeeeOn::ConsoleSessionImpl.

string StreamConsoleSessionImpl::readUntil ( const char  c)
overridevirtual

Read and return data until the character c is reached.

Implements BeeeOn::ConsoleSessionImpl.


The documentation for this class was generated from the following files: