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 for the latest Boost documentation.
PrevUpHomeNext

Class format

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

Synopsis

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


class format {
public:
  // construct/copy/destruct
  ~format();

  // public member functions
  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 construct/copy/destruct

  1. ~format();

format public member functions

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

PrevUpHomeNext