Closed SSoelvsten closed 2 years ago
Given FILE is a C thing, I'd wait to add it to the public API until someone actually needs it. Now that the std::ostream
is provided, one can already do it themselves, by providing the output stream to the FILE.
Currently, adiar/dot.h provides the following two functions in adiar/internal/dot.h
We should move the implementation to a more generic function that has its second argument being
std::ostream
(defaultstd::cout
). Thestd::string
overload then creates thestd::ofstream
and parses it non-const to the other function.FILE
object directlyThese should then also be indirectly added to adiar/bdd.h and adiar/zdd.h . This could be done together with #380 .