Revision 5ac845956d6a75e77eb0017dd5bee443c3a8e029 authored by Lars Bilke on 26 July 2021, 11:41:08 UTC, committed by Lars Bilke on 03 August 2021, 12:16:44 UTC
1 parent 9a0807a
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 ...