From d7b7b4b3391cf99ca63d8311eac3957df7a862ed Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 7 Jul 2009 04:22:49 +0000 Subject: New C++ dmnsn_display* wrapper for tests. --- tests/testsxx.hpp | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'tests/testsxx.hpp') diff --git a/tests/testsxx.hpp b/tests/testsxx.hpp index 45e944a..0e522ad 100644 --- a/tests/testsxx.hpp +++ b/tests/testsxx.hpp @@ -17,9 +17,30 @@ * along with this program. If not, see . * *************************************************************************/ +#ifndef TESTSXX_HPP +#define TESTSXX_HPP + +#include "tests.h" #include "../libdimensionxx/dimensionxx.hpp" #include -// Print a progress bar of the progress of `progress' -std::ostream& operator<<(std::ostream& ostr, - const Dimension::Progress& progress); +namespace Dimension +{ + class Display + { + public: + Display(const Canvas& canvas); + ~Display(); + + void flush(); + + private: + dmnsn_display* m_display; + }; + + // Print a progress bar of the progress of `progress' + std::ostream& operator<<(std::ostream& ostr, + const Dimension::Progress& progress); +} + +#endif // TESTSXX_HPP -- cgit v1.2.3