Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class format

boost::unit_test::results_reporter::format — Results report formatter interface.

Synopsis

// In header: <boost/test/results_reporter.hpp>


class format {
public:

  // public member functions
  virtual ~format();
  virtual void results_report_start(std::ostream &) = 0;
  virtual void results_report_finish(std::ostream &) = 0;
  virtual void test_unit_report_start(test_unit const &, std::ostream &) = 0;
  virtual void test_unit_report_finish(test_unit const &, std::ostream &) = 0;
  virtual void do_confirmation_report(test_unit const &, std::ostream &) = 0;
};

Description

This is abstract interface for the report formatter used by results reporter routines. You can define a custom formatter by implementing this interface and setting the formatter using set_format function. This is usually done during test module initialization

format public member functions

  1. virtual ~format();
  2. virtual void results_report_start(std::ostream & ostr) = 0;
  3. virtual void results_report_finish(std::ostream & ostr) = 0;
  4. virtual void 
    test_unit_report_start(test_unit const &, std::ostream & ostr) = 0;
  5. virtual void 
    test_unit_report_finish(test_unit const &, std::ostream & ostr) = 0;
  6. virtual void 
    do_confirmation_report(test_unit const &, std::ostream & ostr) = 0;

PrevUpHomeNext