Skip to content
Snippets Groups Projects
Forked from ogs / ogs
21346 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ConfigTree.h 826 B
/**
 * \copyright
 * Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#ifndef BASELIB_CONFIGTREE_H_
#define BASELIB_CONFIGTREE_H_

#include <string>
#include <boost/property_tree/ptree.hpp>

extern template class boost::property_tree::basic_ptree<
    std::string, std::string, std::less<std::string>>;

namespace BaseLib
{
using ConfigTree = boost::property_tree::ptree;

boost::property_tree::ptree read_xml_config(std::string const& path);

/// Returns the JSON-representation of the given boost::property_tree.
std::string propertyTreeToString(boost::property_tree::ptree const& tree);
}

#endif  // BASELIB_CONFIGTREE_H_