2020-08-13 20:53:35 +02:00
|
|
|
#include "ServiceInterfaceStream.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
2021-01-03 14:16:52 +01:00
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
2021-01-03 14:08:40 +01:00
|
|
|
|
2020-06-03 23:14:17 +02:00
|
|
|
ServiceInterfaceStream::ServiceInterfaceStream(std::string setMessage,
|
2020-06-04 14:08:26 +02:00
|
|
|
bool addCrToPreamble, bool buffered, bool errStream, uint16_t port) :
|
2020-06-04 19:37:33 +02:00
|
|
|
std::ostream(&streambuf),
|
|
|
|
streambuf(setMessage, addCrToPreamble, buffered, errStream, port) {}
|
2020-06-03 23:14:17 +02:00
|
|
|
|
2016-06-15 23:48:41 +02:00
|
|
|
void ServiceInterfaceStream::setActive( bool myActive) {
|
2020-06-04 19:37:33 +02:00
|
|
|
this->streambuf.isActive = myActive;
|
2016-06-15 23:48:41 +02:00
|
|
|
}
|
|
|
|
|
2020-07-21 15:15:53 +02:00
|
|
|
std::string* ServiceInterfaceStream::getPreamble() {
|
2020-06-04 19:37:33 +02:00
|
|
|
return streambuf.getPreamble();
|
2020-06-04 14:08:26 +02:00
|
|
|
}
|
|
|
|
|
2021-01-15 18:07:32 +01:00
|
|
|
bool ServiceInterfaceStream::crAdditionEnabled() const {
|
|
|
|
return streambuf.crAdditionEnabled();
|
|
|
|
}
|
|
|
|
|
2021-06-11 14:52:09 +02:00
|
|
|
bool ServiceInterfaceStream::setAsciiColorPrefix(std::string asciiColorCode) {
|
|
|
|
streambuf.setAsciiColorPrefix(asciiColorCode);
|
|
|
|
}
|
|
|
|
|
2021-01-03 14:08:40 +01:00
|
|
|
#endif
|
|
|
|
|