action
container
contrib
controller
coordinates
datalinklayer
datapool
datapoollocal
defaultcfg
devicehandlers
doc
events
fdir
globalfunctions
health
housekeeping
internalError
ipc
logo
memory
modes
monitoring
objectmanager
osal
parameters
power
pus
returnvalues
rmap
serialize
serviceinterface
CMakeLists.txt
ServiceInterface.h
ServiceInterfaceBuffer.cpp
ServiceInterfaceBuffer.h
ServiceInterfacePrinter.cpp
ServiceInterfacePrinter.h
ServiceInterfaceStream.cpp
ServiceInterfaceStream.h
serviceInterfaceDefintions.h
storagemanager
subsystem
tasks
tcdistribution
thermal
timemanager
tmstorage
tmtcpacket
tmtcservices
unittest
.gitignore
.gitmodules
CHANGELOG
CMakeLists.txt
FSFWVersion.h
LICENSE
NOTICE
README.md
fsfw.mk
24 lines
612 B
C++
24 lines
612 B
C++
#include "ServiceInterfaceStream.h"
|
|
|
|
#if FSFW_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();
|
|
}
|
|
|
|
bool ServiceInterfaceStream::crAdditionEnabled() const {
|
|
return streambuf.crAdditionEnabled();
|
|
}
|
|
|
|
#endif
|
|
|