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)
5
6// See http://www.boost.org/libs/test for the library home page.
7//
8// File : $RCSfile$
9//
10// Version : $Revision$
11//
12// Description : plain report formatter implementation
13// ***************************************************************************
14
15#ifndef BOOST_TEST_PLAIN_REPORT_FORMATTER_HPP_020105GER
16#define BOOST_TEST_PLAIN_REPORT_FORMATTER_HPP_020105GER
17
18// Boost.Test
19#include <boost/test/detail/global_typedef.hpp>
20#include <boost/test/results_reporter.hpp>
21
22#include <boost/test/detail/suppress_warnings.hpp>
23
24//____________________________________________________________________________//
25
26namespace boost {
27namespace unit_test {
28namespace output {
29
30// ************************************************************************** //
31// ************** plain_report_formatter ************** //
32// ************************************************************************** //
33
34class plain_report_formatter : public results_reporter::format {
35public:
36 plain_report_formatter() : m_indent( 0 ), m_color_output( false ) {}
37
38 // Formatter interface
39 void results_report_start( std::ostream& ostr ) BOOST_OVERRIDE;
40 void results_report_finish( std::ostream& ostr ) BOOST_OVERRIDE;
41
42 void test_unit_report_start( test_unit const&, std::ostream& ostr ) BOOST_OVERRIDE;
43 void test_unit_report_finish( test_unit const&, std::ostream& ostr ) BOOST_OVERRIDE;
44
45 void do_confirmation_report( test_unit const&, std::ostream& ostr ) BOOST_OVERRIDE;
46
47private:
48 // Data members
49 counter_t m_indent;
50 bool m_color_output;
51};
52
53} // namespace output
54} // namespace unit_test
55} // namespace boost
56
57#include <boost/test/detail/enable_warnings.hpp>
58
59#endif // BOOST_TEST_PLAIN_REPORT_FORMATTER_HPP_020105GER
60

source code of include/boost/test/output/plain_report_formatter.hpp