SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Signals | Protected Member Functions | List of all members
smtk::extension::qtEmittingStringBuffer Class Reference

An std::stringbuf that emits when it is updated. More...

#include <qtEmittingStringBuffer.h>

Inheritance diagram for smtk::extension::qtEmittingStringBuffer:
[legend]
Collaboration diagram for smtk::extension::qtEmittingStringBuffer:
[legend]

Signals

void flush ()
 

Protected Member Functions

int sync () override
 

Detailed Description

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.


The documentation for this class was generated from the following file: