1 #ifndef PTREE_COMPARISON_H_INCLUDED
2 #define PTREE_COMPARISON_H_INCLUDED
24 #include <boost/property_tree/ptree_fwd.hpp>
29 using boost::property_tree::ptree;
59 static bool CompareRootValues(ptree
const& pt1, ptree
const& pt2,
double acceptable_diff);
77 static bool CompareArray(ptree
const& pt1, ptree
const& pt2,
double acceptable_diff);
91 static bool CompareNonArray(ptree
const& pt1, ptree
const& pt2,
double acceptable_diff);
96 #endif // end-of-include-guard
Namespace for SimPT shell package.
static bool CompareRootValues(ptree const &pt1, ptree const &pt2, double acceptable_diff)
Test if root values of both ptrees are equal, with the possibility of having some tolerance for small...
static bool CompareArray(ptree const &pt1, ptree const &pt2, double acceptable_diff)
Test if ordered list of children of both ptrees are equal, i.e.
Collection of functions for recursively comparing ptrees, with some 'array' semantics applied...
Header file for Exception class.
static bool CompareNonArray(ptree const &pt1, ptree const &pt2, double acceptable_diff)
Test if every child in first ptree with certain key can also be found in second ptree under the same ...