Boost C++ Libraries 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.

Struct template sink_factory



// In header: <boost/log/utility/setup/from_settings.hpp>

template<typename CharT> 
struct sink_factory {
  // types
  typedef CharT                               char_type;         // Character type. 
  typedef std::basic_string< char_type >      string_type;       // String type. 
  typedef basic_settings_section< char_type > settings_section;  // Settings section type. 

  // construct/copy/destruct
  sink_factory() = default;
  sink_factory(sink_factory const &) = delete;
  sink_factory& operator=(sink_factory const &) = delete;

  // public member functions
  shared_ptr< sinks::sink > create_sink(settings_section const &);


Sink factory base interface

sink_factory public construct/copy/destruct

  1. sink_factory() = default;

    Default constructor

  2. sink_factory(sink_factory const &) = delete;
  3. sink_factory& operator=(sink_factory const &) = delete;
  4. ~sink_factory();

    Virtual destructor

sink_factory public member functions

  1. shared_ptr< sinks::sink > create_sink(settings_section const & settings);

    The function creates a formatter for the specified attribute.



    Sink parameters