source: NonGTP/Boost/boost/test/output/compiler_log_formatter.hpp @ 857

Revision 857, 2.9 KB checked in by igarcia, 19 years ago (diff)
Line 
1//  (C) Copyright Gennadiy Rozental 2005.
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: compiler_log_formatter.hpp,v $
9//
10//  Version     : $Revision: 1.2 $
11//
12//  Description : contains compiler like Log formatter definition
13// ***************************************************************************
14
15#ifndef BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
16#define BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
17
18// Boost.Test
19#include <boost/test/detail/global_typedef.hpp>
20#include <boost/test/unit_test_log_formatter.hpp>
21
22#include <boost/test/detail/suppress_warnings.hpp>
23
24//____________________________________________________________________________//
25
26namespace boost {
27
28namespace unit_test {
29
30namespace output {
31
32// ************************************************************************** //
33// **************             compiler_log_formatter           ************** //
34// ************************************************************************** //
35
36class compiler_log_formatter : public unit_test_log_formatter {
37public:
38    // Formatter interface
39    void    log_start( std::ostream&, counter_t test_cases_amount );
40    void    log_finish( std::ostream& );
41    void    log_build_info( std::ostream& );
42
43    void    test_unit_start( std::ostream&, test_unit const& tu );
44    void    test_unit_finish( std::ostream&, test_unit const& tu, unsigned long elapsed );
45    void    test_unit_skipped( std::ostream&, test_unit const& tu );
46
47    void    log_exception( std::ostream&, log_checkpoint_data const&, const_string explanation );
48
49    void    log_entry_start( std::ostream&, log_entry_data const&, log_entry_types let );
50    void    log_entry_value( std::ostream&, const_string value );
51    void    log_entry_finish( std::ostream& );
52
53protected:
54    virtual void    print_prefix( std::ostream&, const_string file, std::size_t line );
55};
56
57} // namespace output
58
59} // namespace unit_test
60
61} // namespace boost
62
63//____________________________________________________________________________//
64
65#include <boost/test/detail/enable_warnings.hpp>
66
67// ***************************************************************************
68//  Revision History :
69// 
70//  $Log: compiler_log_formatter.hpp,v $
71//  Revision 1.2  2005/02/20 08:27:08  rogeeff
72//  This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
73//
74//  Revision 1.1  2005/02/01 08:59:39  rogeeff
75//  supplied_log_formatters split
76//  change formatters interface to simplify result interface
77//
78// ***************************************************************************
79
80#endif // BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
Note: See TracBrowser for help on using the repository browser.