Revision a2f11e6a98c815a32dbff2d89d36ab209f90d3cf authored by Thomas Fischer on 21 June 2021, 06:43:12 UTC, committed by Thomas Fischer on 24 June 2021, 10:09:45 UTC
1 parent 5ff4364
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 ...