1 // (C) Copyright Gennadiy Rozental 2001.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
10 // Version : $Revision$
12 // Description : contains OF_XML Log formatter definition
13 // ***************************************************************************
15 #ifndef BOOST_TEST_XML_LOG_FORMATTER_020105GER
16 #define BOOST_TEST_XML_LOG_FORMATTER_020105GER
19 #include <boost/test/detail/global_typedef.hpp>
20 #include <boost/test/unit_test_log_formatter.hpp>
23 #include <cstddef> // std::size_t
25 #include <boost/test/detail/suppress_warnings.hpp>
27 //____________________________________________________________________________//
33 // ************************************************************************** //
34 // ************** xml_log_formatter ************** //
35 // ************************************************************************** //
37 class xml_log_formatter : public unit_test_log_formatter {
39 // Formatter interface
40 void log_start( std::ostream&, counter_t test_cases_amount );
41 void log_finish( std::ostream& );
42 void log_build_info( std::ostream& );
44 void test_unit_start( std::ostream&, test_unit const& tu );
45 void test_unit_finish( std::ostream&, test_unit const& tu, unsigned long elapsed );
46 void test_unit_skipped( std::ostream&, test_unit const& tu, const_string reason );
48 void log_exception_start( std::ostream&, log_checkpoint_data const&, execution_exception const& ex );
49 void log_exception_finish( std::ostream& );
51 void log_entry_start( std::ostream&, log_entry_data const&, log_entry_types let );
52 using unit_test_log_formatter::log_entry_value; // bring base class functions into overload set
53 void log_entry_value( std::ostream&, const_string value );
54 void log_entry_finish( std::ostream& );
56 void entry_context_start( std::ostream&, log_level );
57 void log_entry_context( std::ostream&, const_string );
58 void entry_context_finish( std::ostream& );
62 const_string m_curr_tag;
67 } // namespace unit_test
70 #include <boost/test/detail/enable_warnings.hpp>
72 #endif // BOOST_TEST_XML_LOG_FORMATTER_020105GER