]> git.lyx.org Git - lyx.git/blob - boost/boost/format/format_fwd.hpp
update boost to pre-1.30.0
[lyx.git] / boost / boost / format / format_fwd.hpp
1 // -*- C++ -*-
2 //  Boost general library 'format'   ---------------------------
3 //  See http://www.boost.org for updates, documentation, and revision history.
4
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.
11
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)
14
15 // ------------------------------------------------------------------------------
16 // format_fwd.hpp :  forward declarations, for primary header format.hpp
17 // ------------------------------------------------------------------------------
18
19 #ifndef BOOST_FORMAT_FWD_HPP
20 #define BOOST_FORMAT_FWD_HPP
21
22 #include <string>
23 #include <iosfwd>
24
25 #include <boost/config.hpp>
26
27 namespace boost {
28
29 template<class charT, class Traits = BOOST_IO_STD char_traits<charT> > class basic_format;
30
31 typedef basic_format<char >     format;
32
33 #if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_STD_WSTREAMBUF)
34 typedef basic_format<wchar_t >  wformat;
35 #endif
36
37 namespace io {
38 enum format_error_bits { bad_format_string_bit = 1, 
39                          too_few_args_bit = 2, too_many_args_bit = 4,
40                          out_of_range_bit = 8,
41                          all_error_bits = 255, no_error_bits=0 };
42                   
43 // Convertion:  format   to   string
44 template<class Ch, class Tr> 
45 std::basic_string<Ch, Tr>     str(const basic_format<Ch, Tr>& ) ;
46
47 } // namespace io
48
49
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>&);
53
54
55 } // namespace boost
56
57 #endif // BOOST_FORMAT_FWD_HPP