https://gitlab.opengeosys.org/ogs/ogs.git
Revision 801d6b6cc26f4f0f2bf3eb0e9ebf5720fe4d0f5a authored by Lars Bilke on 03 April 2021, 11:42:00 UTC, committed by Lars Bilke on 03 April 2021, 11:42:00 UTC
1 parent 786068d
Raw File
Tip revision: 801d6b6cc26f4f0f2bf3eb0e9ebf5720fe4d0f5a authored by Lars Bilke on 03 April 2021, 11:42:00 UTC
[web] Fix release date part 2.
Tip revision: 801d6b6
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
back to top