~ubuntu-branches/ubuntu/trusty/liblas/trusty-proposed

« back to all changes in this revision

Viewing changes to include/liblas/external/property_tree/detail/info_parser_writer_settings.hpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2014-01-05 17:00:29 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140105170029-ddtp0j63x5jvck2u
Tags: 1.7.0+dfsg-2
Fixed missing linking of system boost component.
(closes: #733282)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 LIBLAS_BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITER_SETTINGS_HPP_INCLUDED
 
12
#define LIBLAS_BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITER_SETTINGS_HPP_INCLUDED
 
13
 
 
14
#include <string>
 
15
 
 
16
namespace liblas { 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