Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/property_tree/detail/xml_parser_flags.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // ---------------------------------------------------------------------------- |
Chris@16 | 2 // Copyright (C) 2002-2006 Marcin Kalicinski |
Chris@16 | 3 // |
Chris@16 | 4 // Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 5 // (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 6 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 // |
Chris@16 | 8 // For more information, see www.boost.org |
Chris@16 | 9 // ---------------------------------------------------------------------------- |
Chris@16 | 10 #ifndef BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED |
Chris@16 | 11 #define BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED |
Chris@16 | 12 |
Chris@16 | 13 namespace boost { namespace property_tree { namespace xml_parser |
Chris@16 | 14 { |
Chris@16 | 15 |
Chris@16 | 16 /// Text elements should be put in separate keys, |
Chris@16 | 17 /// not concatenated in parent data. |
Chris@16 | 18 static const int no_concat_text = 0x1; |
Chris@16 | 19 /// Comments should be omitted. |
Chris@16 | 20 static const int no_comments = 0x2; |
Chris@16 | 21 /// Whitespace should be collapsed and trimmed. |
Chris@16 | 22 static const int trim_whitespace = 0x4; |
Chris@16 | 23 |
Chris@16 | 24 inline bool validate_flags(int flags) |
Chris@16 | 25 { |
Chris@16 | 26 return (flags & ~(no_concat_text | no_comments | trim_whitespace)) == 0; |
Chris@16 | 27 } |
Chris@16 | 28 |
Chris@16 | 29 } } } |
Chris@16 | 30 |
Chris@16 | 31 #endif |