1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2002-2006 Marcin Kalicinski
3 // Copyright (C) 2007 Alexey Baskakov
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // For more information, see www.boost.org
10 // ----------------------------------------------------------------------------
11 #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITER_SETTINGS_HPP_INCLUDED
12 #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITER_SETTINGS_HPP_INCLUDED
13 
14 #include <string>
15 
16 namespace boost { namespace property_tree { namespace info_parser
17 {
18 
19     template <class Ch>
20     class info_writer_settings
21     {
22     public:
info_writer_settings(Ch indent_char=Ch (' '),unsigned indent_count=4)23         info_writer_settings(Ch indent_char = Ch(' '), unsigned indent_count = 4):
24             indent_char(indent_char),
25             indent_count(indent_count)
26         {
27         }
28         Ch indent_char;
29         int indent_count;
30     };
31 
32     template <class Ch>
info_writer_make_settings(Ch indent_char=Ch (' '),unsigned indent_count=4)33     info_writer_settings<Ch> info_writer_make_settings(Ch indent_char = Ch(' '), unsigned indent_count = 4)
34     {
35         return info_writer_settings<Ch>(indent_char, indent_count);
36     }
37 
38 } } }
39 
40 #endif
41