MCPcopy Create free account
hub / github.com/cvanaret/Uno / set_logger_stream

Method set_logger_stream

interfaces/Python/cpp_classes/UnoSolverWrapper.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void UnoSolverWrapper::set_logger_stream(py::object python_stream) {
50 this->stream = python_stream; // keep Python object alive
51 this->stream_buffer = std::make_unique<PythonStreamBuffer>(python_stream);
52 this->ostream = std::make_unique<std::ostream>(this->stream_buffer.get());
53 uno::Logger::set_stream(*this->ostream);
54 }
55
56 void UnoSolverWrapper::set_notify_acceptable_iterate_callback(NotifyAcceptableIterateCallback notify_acceptable_iterate_callback) {
57 this->notify_acceptable_iterate_callback = std::move(notify_acceptable_iterate_callback);

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected