fsfw/serviceinterface/ServiceInterfaceStream.cpp

16 lines
444 B
C++
Raw Normal View History

#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) {
}
void ServiceInterfaceStream::setActive( bool myActive) {
this->buf.isActive = myActive;
}
2020-06-03 22:56:03 +02:00
std::string ServiceInterfaceStream::getPreamble() {
return buf.getPreamble();
}