diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-07 04:22:49 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-07 04:22:49 +0000 |
commit | d7b7b4b3391cf99ca63d8311eac3957df7a862ed (patch) | |
tree | ca25a171111abb0bfffc53fd61b01623b36992b6 /tests/testsxx.hpp | |
parent | c54af1b6644216335361e61e770037aca1527756 (diff) | |
download | dimension-d7b7b4b3391cf99ca63d8311eac3957df7a862ed.tar.xz |
New C++ dmnsn_display* wrapper for tests.
Diffstat (limited to 'tests/testsxx.hpp')
-rw-r--r-- | tests/testsxx.hpp | 27 |
1 files changed, 24 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. * *************************************************************************/ +#ifndef TESTSXX_HPP +#define TESTSXX_HPP + +#include "tests.h" #include "../libdimensionxx/dimensionxx.hpp" #include <iostream> -// 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 |