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:
Collaboration diagram for smtk::extension::qtEmittingStringBuffer:


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: