Revision e4f8d4750fabdc04dc44f48598a6ab25e9f01d83 authored by Tobias Meisel on 05 January 2021, 20:24:18 UTC, committed by Dmitry Yu. Naumov on 27 April 2021, 07:47:51 UTC
1 parent 2950ca3
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 "Tests/TestTools.h"
#include <boost/property_tree/xml_parser.hpp>
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 ...