Commit 1dade9a7ee0a8aba935fbf81a4ee7891a83285a2
1 parent
b1e0dcff
more notes on cout
git-svn-id: svn+q:///qpdf/trunk@1026 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
7 additions
and
1 deletions
TODO
| ... | ... | @@ -4,7 +4,13 @@ General |
| 4 | 4 | * QPDF::checkLinearization writes things to std::cout, which makes it |
| 5 | 5 | hard for GUIs that want to display the result. Go through all |
| 6 | 6 | library code and get rid of use of std::cout and std::cerr, |
| 7 | - replacing them with some better mechanism. | |
| 7 | + replacing them with some better mechanism. To avoid changing the | |
| 8 | + ABI, add two new methods: one that takes a std::ostream& and one | |
| 9 | + that takes a reference to a std::vector<std::string>. The real | |
| 10 | + code should append to the vector. The ostream version should | |
| 11 | + remember to catch exceptions, output the vector elements, and | |
| 12 | + rethrow if needed. The old version should call the ostream version | |
| 13 | + with std::cout. | |
| 8 | 14 | |
| 9 | 15 | * In general, take a fresh look at private methods to see which, if |
| 10 | 16 | any, should be protected. | ... | ... |