fsfw/serviceinterface/ServiceInterfaceStream.cpp

16 lines
467 B
C++
Raw Normal View History

2020-08-13 20:53:35 +02:00
#include "ServiceInterfaceStream.h"
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) {}
void ServiceInterfaceStream::setActive( bool myActive) {
2020-06-04 19:37:33 +02:00
this->streambuf.isActive = myActive;
}
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
}