Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct callback_error_handler

boost::parser::callback_error_handler

Synopsis

// In header: <boost/parser/error_handling.hpp>


struct callback_error_handler {
  // types
  typedef void(const &)> ;

  // public member functions
  ();
  (,  = );
  (, ,  = );
  (, ,  = );
  template<typename Iter, typename Sentinel> 
     
    (Iter, Sentinel, parse_error< Iter > const &) ;
  template<typename Context, typename Iter> 
    void (, , Context  const &, Iter) ;
  template<typename Context> 
    void (, , Context  const &) ;

  // public data members
   error_;
   warning_;
   filename_;
};

Description

An error handler that allows users to supply callbacks to handle the reporting of warnings and errors. The reporting of errors and/or warnings can be suppressed by supplying one or both default-constructed callbacks.

callback_error_handler public member functions

  1. ();
  2. ( error,  warning = );
  3. ( filename,  error, 
                            warning = );
  4. ( filename,  error, 
                            warning = );

    This overload is Windows-only.

  5. template<typename Iter, typename Sentinel> 
       
      (Iter first, Sentinel last, parse_error< Iter > const & e) ;
  6. template<typename Context, typename Iter> 
      void ( kind,  message, 
                    Context  const & context, Iter it) ;
  7. template<typename Context> 
      void ( kind,  message, 
                    Context  const & context) ;

PrevUpHomeNext