https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: fa30e310080a6cc42b23c55790023333c46c9119 authored by Thomas Fischer on 27 October 2021, 07:21:58 UTC
[NL/PL] TimeStep::steps -> TimeStep::timeStepNumber.
Tip revision: fa30e31
TestTools.cpp
/**
 * \copyright
 * Copyright (c) 2012-2022, 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
back to top