From 1dade9a7ee0a8aba935fbf81a4ee7891a83285a2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 5 Sep 2010 15:02:19 +0000 Subject: more notes on cout git-svn-id: svn+q:///qpdf/trunk@1026 71b93d88-0707-0410-a8cf-f5a4172ac649 --- TODO | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'TODO') diff --git a/TODO b/TODO index 0ec57ac9..d3c25152 100644 --- a/TODO +++ b/TODO @@ -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. 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. -- cgit v1.2.3-54-g00ecf