I want to wrap a C++ function writing to a file stream to be able to print to a file or to stdout
(eventually I’d like to try if redirect_stdout
would work to make it print to a custom buffer). However, CxxWrap does not want to export it saying there is no factory for the IO_FILE type. As far as I understand, such functions are supposed to take Ptr{Libc.FILE}
from Julia. Is it possible to do that using CxxWrap?
For the reference, the C++ library in question is Voro++. It has some output functions that use protected and private class members internally, so that I cannot just port the implementation to Julia without patching the original library.