Revision d1b08c539e28701ddf1d6e702a969fa92ffcf21a authored by Wenqing Wang on 23 February 2021, 13:38:39 UTC, committed by Wenqing Wang on 23 February 2021, 16:56:48 UTC
1 parent 2e63da1
TestTools.cpp
/**
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include <boost/property_tree/xml_parser.hpp>
#include "Tests/TestTools.h"
namespace Tests
{
boost::property_tree::ptree readXml(const char xml[])
{
boost::property_tree::ptree ptree;
std::istringstream xml_str(xml);
boost::property_tree::read_xml(
xml_str, ptree,
boost::property_tree::xml_parser::no_comments |
boost::property_tree::xml_parser::trim_whitespace);
return ptree;
}
} // namespace Tests
Computing file changes ...