Revision 32e4bfbf98a60e761b1a1ac679774f6cb4f98b21 authored by Wenqing Wang on 30 June 2021, 13:26:29 UTC, committed by Dmitry Yu. Naumov on 05 July 2021, 10:50:41 UTC
1 parent be8cfd9
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...