1
0
forked from fsfw/fsfw

more improvements for servicei nterface

This commit is contained in:
2020-06-04 01:06:03 +02:00
parent 17ed9b7796
commit 925a54dec9
4 changed files with 69 additions and 37 deletions

View File

@ -19,8 +19,8 @@ class ServiceInterfaceBuffer:
public std::streambuf {
friend class ServiceInterfaceStream;
public:
ServiceInterfaceBuffer(std::string setMessage, bool errStream,
bool addCrToPreamble, uint16_t port);
ServiceInterfaceBuffer(std::string setMessage, bool addCrToPreamble,
bool buffered, bool errStream, uint16_t port);
protected:
bool isActive;
@ -41,6 +41,7 @@ private:
//! This is useful for some terminal programs which do not have
//! implicit carriage return with newline characters.
bool addCrToPreamble;
bool buffered;
//! This specifies to print to stderr and work in unbuffered mode.
bool errStream;