Chris@16: // ---------------------------------------------------------------------------- Chris@16: // Copyright (C) 2002-2006 Marcin Kalicinski Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // For more information, see www.boost.org Chris@16: // ---------------------------------------------------------------------------- Chris@16: #ifndef BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED Chris@16: #define BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED Chris@16: Chris@16: namespace boost { namespace property_tree { namespace xml_parser Chris@16: { Chris@16: Chris@16: /// Text elements should be put in separate keys, Chris@16: /// not concatenated in parent data. Chris@16: static const int no_concat_text = 0x1; Chris@16: /// Comments should be omitted. Chris@16: static const int no_comments = 0x2; Chris@16: /// Whitespace should be collapsed and trimmed. Chris@16: static const int trim_whitespace = 0x4; Chris@16: Chris@16: inline bool validate_flags(int flags) Chris@16: { Chris@16: return (flags & ~(no_concat_text | no_comments | trim_whitespace)) == 0; Chris@16: } Chris@16: Chris@16: } } } Chris@16: Chris@16: #endif