SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An std::stringbuf that emits when it is updated. More...
#include <qtEmittingStringBuffer.h>
Signals | |
void | flush () |
Protected Member Functions | |
int | sync () override |
An std::stringbuf that emits when it is updated.
smtk::io::Logger does not have any access points for derived classes to inject actions upon the receipt of a log. So, we set our logger to use a std::ostream with a custom std::stringbuf that emits during its sync() call.
NOTE: This is not a very performant way to pass log messages, and could become a performance bottleneck.