Revision d2d1748161787e2ef28ef86e24853a78e8d5d444 authored by Dmitri Naumov on 19 May 2021, 14:40:31 UTC, committed by Dmitri Naumov on 19 May 2021, 15:46:41 UTC
Functions are only used internally in the translation unit.
No need to expose the interface.
1 parent c04b0b7
Raw File
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
back to top