2 // Boost general library 'format' ---------------------------
3 // See http://www.boost.org for updates, documentation, and revision history.
5 // (C) Samuel Krempp 2001
6 // krempp@crans.ens-cachan.fr
7 // Permission to copy, use, modify, sell and
8 // distribute this software is granted provided this copyright notice appears
9 // in all copies. This software is provided "as is" without express or implied
10 // warranty, and with no claim as to its suitability for any purpose.
12 // ideas taken from RĂ¼diger Loos's format class
13 // and Karl Nelson's ofstream (also took its parsing code as basis for printf parsing)
15 // ------------------------------------------------------------------------------
16 // format_fwd.hpp : forward declarations, for primary header format.hpp
17 // ------------------------------------------------------------------------------
19 #ifndef BOOST_FORMAT_FWD_HPP
20 #define BOOST_FORMAT_FWD_HPP
25 #include <boost/config.hpp>
29 template<class charT, class Traits = BOOST_IO_STD char_traits<charT> > class basic_format;
31 typedef basic_format<char > format;
33 #if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_STD_WSTREAMBUF)
34 typedef basic_format<wchar_t > wformat;
38 enum format_error_bits { bad_format_string_bit = 1,
39 too_few_args_bit = 2, too_many_args_bit = 4,
41 all_error_bits = 255, no_error_bits=0 };
43 // Convertion: format to string
44 template<class Ch, class Tr>
45 std::basic_string<Ch, Tr> str(const basic_format<Ch, Tr>& ) ;
50 template< class Ch, class Tr>
51 BOOST_IO_STD basic_ostream<Ch, Tr>&
52 operator<<( BOOST_IO_STD basic_ostream<Ch, Tr>&, const basic_format<Ch, Tr>&);
57 #endif // BOOST_FORMAT_FWD_HPP