Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:17

0001 // ----------------------------------------------------------------------------
0002 // Copyright (C) 2002-2006 Marcin Kalicinski
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. 
0005 // (See accompanying file LICENSE_1_0.txt or copy at 
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see www.boost.org
0009 // ----------------------------------------------------------------------------
0010 #ifndef BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
0011 #define BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
0012 
0013 namespace boost { namespace property_tree { namespace xml_parser
0014 {
0015 
0016     /// Text elements should be put in separate keys,
0017     /// not concatenated in parent data.
0018     static const int no_concat_text  = 0x1;
0019     /// Comments should be omitted.
0020     static const int no_comments     = 0x2;
0021     /// Whitespace should be collapsed and trimmed.
0022     static const int trim_whitespace = 0x4;
0023 
0024     inline bool validate_flags(int flags)
0025     {
0026         return (flags & ~(no_concat_text | no_comments | trim_whitespace)) == 0;
0027     }
0028 
0029 } } }
0030 
0031 #endif