2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-29 00:10:54 +00:00

more notes on cout

git-svn-id: svn+q:///qpdf/trunk@1026 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
Jay Berkenbilt 2010-09-05 15:02:19 +00:00
parent b1e0dcff16
commit 1dade9a7ee

8
TODO
View File

@ -4,7 +4,13 @@ General
* QPDF::checkLinearization writes things to std::cout, which makes it
hard for GUIs that want to display the result. Go through all
library code and get rid of use of std::cout and std::cerr,
replacing them with some better mechanism.
replacing them with some better mechanism. To avoid changing the
ABI, add two new methods: one that takes a std::ostream& and one
that takes a reference to a std::vector<std::string>. The real
code should append to the vector. The ostream version should
remember to catch exceptions, output the vector elements, and
rethrow if needed. The old version should call the ostream version
with std::cout.
* In general, take a fresh look at private methods to see which, if
any, should be protected.