14#include <boost/format.hpp>
15#include <boost/iostreams/categories.hpp>
16#include <boost/iostreams/stream.hpp>
24 using char_type = char;
25 using category = boost::iostreams::sink_tag;
27 std::streamsize
write(
const char *s, std::streamsize
n) {
30 static const std::streamsize MAXSIZE = 1000;
32 std::streamsize written = std::min(
n, MAXSIZE);
33 PySys_WriteStdout((boost::format(
"%%.%1%s") % written).str().c_str(), s);
40PyStdoutSink pyStdoutSinkInstance = PyStdoutSink();
41boost::iostreams::stream<PyStdoutSink> PyStdoutStream(pyStdoutSinkInstance);
Defines a structure for acquiring/releasing the Python GIL using the RAII pattern.
PythonStdoutChannel()
Constructor for PythonStdoutChannel.
MANTID_DATAHANDLING_DLL void write(H5::Group &group, const std::string &name, const std::string &value)