format_fwd.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // -*- C++ -*-
  2. // Boost general library 'format' ---------------------------
  3. // See http://www.boost.org for updates, documentation, and revision history.
  4. // (C) Samuel Krempp 2001
  5. // krempp@crans.ens-cachan.fr
  6. // Permission to copy, use, modify, sell and
  7. // distribute this software is granted provided this copyright notice appears
  8. // in all copies. This software is provided "as is" without express or implied
  9. // warranty, and with no claim as to its suitability for any purpose.
  10. // ideas taken from Rüdiger Loos's format class
  11. // and Karl Nelson's ofstream (also took its parsing code as basis for printf parsing)
  12. // ------------------------------------------------------------------------------
  13. // format_fwd.hpp : forward declarations, for primary header format.hpp
  14. // ------------------------------------------------------------------------------
  15. #ifndef BOOST_FORMAT_FWD_HPP
  16. #define BOOST_FORMAT_FWD_HPP
  17. #include <string>
  18. #include <iosfwd>
  19. namespace boost {
  20. class basic_format;
  21. typedef basic_format format;
  22. namespace io {
  23. enum format_error_bits { bad_format_string_bit = 1,
  24. too_few_args_bit = 2, too_many_args_bit = 4,
  25. out_of_range_bit = 8,
  26. all_error_bits = 255, no_error_bits=0 };
  27. // Convertion: format to string
  28. std::string str(const basic_format& ) ;
  29. } // namespace io
  30. BOOST_IO_STD ostream&
  31. operator<<( BOOST_IO_STD ostream&, const basic_format&);
  32. } // namespace boost
  33. #endif // BOOST_FORMAT_FWD_HPP