PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/property_tree/detail/info_parser_writer_settings.hpp

http://hadesmem.googlecode.com/
C++ Header | 40 lines | 24 code | 6 blank | 10 comment | 0 complexity | f4ba2b8e575c2257cfd169f36842caa3 MD5 | raw file
 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
16namespace boost { namespace property_tree { namespace info_parser
17{
18
19    template <class Ch>
20    class info_writer_settings
21    {
22    public:
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>
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