2016-06-15 23:48:41 +02:00
|
|
|
#include <framework/serviceinterface/ServiceInterfaceStream.h>
|
|
|
|
|
2020-06-03 22:56:03 +02:00
|
|
|
ServiceInterfaceStream::ServiceInterfaceStream(std::string setMessage,
|
|
|
|
bool errStream, bool addCrToPreamble, uint16_t port) :
|
|
|
|
std::ostream(&buf),
|
|
|
|
buf(setMessage, errStream, addCrToPreamble, port) {
|
|
|
|
}
|
|
|
|
|
2016-06-15 23:48:41 +02:00
|
|
|
void ServiceInterfaceStream::setActive( bool myActive) {
|
|
|
|
this->buf.isActive = myActive;
|
|
|
|
}
|
|
|
|
|
2020-06-03 22:56:03 +02:00
|
|
|
std::string ServiceInterfaceStream::getPreamble() {
|
|
|
|
return buf.getPreamble();
|
2016-06-15 23:48:41 +02:00
|
|
|
}
|