20 lines
505 B
C++
20 lines
505 B
C++
#include "ServiceInterfaceStream.h"
|
|
|
|
#if CPP_OSTREAM_ENABLED == 1
|
|
|
|
ServiceInterfaceStream::ServiceInterfaceStream(std::string setMessage,
|
|
bool addCrToPreamble, bool buffered, bool errStream, uint16_t port) :
|
|
std::ostream(&streambuf),
|
|
streambuf(setMessage, addCrToPreamble, buffered, errStream, port) {}
|
|
|
|
void ServiceInterfaceStream::setActive( bool myActive) {
|
|
this->streambuf.isActive = myActive;
|
|
}
|
|
|
|
std::string* ServiceInterfaceStream::getPreamble() {
|
|
return streambuf.getPreamble();
|
|
}
|
|
|
|
#endif
|
|
|