1 // Boost.Geometry (aka GGL, Generic Geometry Library) 2 // Tool reporting Implementation Support Status in QBK or plain text format 3 4 // Copyright (c) 2011-2012 Bruno Lalande, Paris, France. 5 // Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands. 6 7 // Use, modification and distribution is subject to the Boost Software License, 8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 9 // http://www.boost.org/LICENSE_1_0.txt) 10 11 #ifndef BOOST_GEOMETRY_SUPPORT_STATUS_TEXT_OUTPUTTER_HPP 12 #define BOOST_GEOMETRY_SUPPORT_STATUS_TEXT_OUTPUTTER_HPP 13 14 15 struct text_outputter 16 { text_outputtertext_outputter17 explicit text_outputter(const std::string&) {} 18 oktext_outputter19 static inline void ok() { std::cout << "OK\t"; } nyitext_outputter20 static inline void nyi() { std::cout << "-\t"; } headertext_outputter21 static inline void header(std::string const& algo) { std::cout << algo << std::endl; } 22 23 template <typename T> table_headertext_outputter24 static inline void table_header() { } table_headertext_outputter25 static inline void table_header() { } 26 table_footertext_outputter27 static inline void table_footer() { std::cout << std::endl; } 28 29 template <typename G> begin_rowtext_outputter30 static inline void begin_row() {} 31 end_rowtext_outputter32 static inline void end_row() { std::cout << std::endl; } 33 34 }; 35 36 #endif // BOOST_GEOMETRY_SUPPORT_STATUS_TEXT_OUTPUTTER_HPP 37