diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:18:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:18:54 +0200 |
commit | cc18a06a5abca3f336d2263fc8248368c08635e4 (patch) | |
tree | fa2c57f6a53d5f6696d86ca545c38bf38cd680fa /include/basegfx/color | |
parent | cd7cd5342248354ab322c3722c100d2cfb525bd8 (diff) |
Printing of some more basegfx types
...as will be needed by some upcoming replacements of CPPUNIT_ASSERT with
CPPUNIT_ASSERT_EQUAL
Change-Id: I24ede3cc287bcc3b5e73eb400e4044c469657659
Diffstat (limited to 'include/basegfx/color')
-rw-r--r-- | include/basegfx/color/bcolor.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/basegfx/color/bcolor.hxx b/include/basegfx/color/bcolor.hxx index d0854e63a579..300f8db81e81 100644 --- a/include/basegfx/color/bcolor.hxx +++ b/include/basegfx/color/bcolor.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_BASEGFX_COLOR_BCOLOR_HXX #define INCLUDED_BASEGFX_COLOR_BCOLOR_HXX +#include <sal/config.h> + +#include <ostream> + #include <basegfx/tuple/b3dtuple.hxx> #include <vector> #include <basegfx/basegfxdllapi.h> @@ -173,6 +177,15 @@ namespace basegfx } }; + + template<typename charT, typename traits> + std::basic_ostream<charT, traits> & operator <<( + std::basic_ostream<charT, traits> & stream, BColor const & color) + { + return stream + << '[' << color.getRed() << ", " << color.getGreen() << ", " + << color.getBlue() << ']'; + } } // end of namespace basegfx #endif // INCLUDED_BASEGFX_COLOR_BCOLOR_HXX |