| 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); |