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

« back to all changes in this revision

Viewing changes to include/liblas/external/property_tree/detail/xml_parser_flags.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
//
 
4
// Distributed under the Boost Software License, Version 1.0. 
 
5
// (See accompanying file LICENSE_1_0.txt or copy at 
 
6
// http://www.boost.org/LICENSE_1_0.txt)
 
7
//
 
8
// For more information, see www.boost.org
 
9
// ----------------------------------------------------------------------------
 
10
#ifndef LIBLAS_BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
 
11
#define LIBLAS_BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
 
12
 
 
13
namespace liblas { namespace property_tree { namespace xml_parser
 
14
{
 
15
 
 
16
    /// Text elements should be put in separate keys,
 
17
    /// not concatenated in parent data.
 
18
    static const int no_concat_text  = 0x1;
 
19
    /// Comments should be omitted.
 
20
    static const int no_comments     = 0x2;
 
21
    /// Whitespace should be collapsed and trimmed.
 
22
    static const int trim_whitespace = 0x4;
 
23
 
 
24
    inline bool validate_flags(int flags)
 
25
    {
 
26
        return (flags & ~(no_concat_text | no_comments | trim_whitespace)) == 0;
 
27
    }
 
28
 
 
29
} } }
 
30
 
 
31
#endif