service interface stream enhancements #93
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#93
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "KSat/fsfw:mueller_ServiceStreamEnhancement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
replacement for #52 .
Fixes #51 .
Fixes #31 .
I made some more improvements:
I have rewritten parts of the code.
The only external definitions are the classes itself now (which are already std::ostream's anyway). These can be instantiated somewhere else, and the extra osstreams are not necessary anymore.
I reworked the getPreamble() function to not use dnymaic memory allocation (at runtime), so sprintf is used again.
THere are optional flags to work in unbuffered mode or pipe output to stderr instead of stdout as well.
Small API change: printChar now takes a second parameter, which specifies whether to use stderr or stdout. Can be used on linux for example.
Old implementation was using dynamic memory allocaton, space for std::string now allocated at initialization only.