streambuf class
An output stream buffer for MEX-files.
Contents
- Reference
Creating an object of this class replaces the stream buffer in std::cout
with the newly
created object. This buffer will be used as long as the object exists. When the object
is destroyed (which happens automatically when it goes out of scope), the original
stream buffer is replaced.
Create an object of this class at the beginning of any MEX-file that uses std::cout
to
print information to the MATLAB terminal. DIPlib defines several classes with a stream
insertion operator that would be cumbersome to use with a std::stringstream
and mexPrintf
.
This class simplifies their use.
Base classes
- class std::streambuf