summaryrefslogtreecommitdiff
path: root/lib/gras_impl/query_common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gras_impl/query_common.hpp')
-rw-r--r--lib/gras_impl/query_common.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/gras_impl/query_common.hpp b/lib/gras_impl/query_common.hpp
new file mode 100644
index 0000000..3111d11
--- /dev/null
+++ b/lib/gras_impl/query_common.hpp
@@ -0,0 +1,21 @@
+// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
+
+#ifndef INCLUDED_LIBGRAS_IMPL_QUERY_COMMON_HPP
+#define INCLUDED_LIBGRAS_IMPL_QUERY_COMMON_HPP
+
+#include <PMC/PMC.hpp>
+#include <boost/property_tree/ptree.hpp>
+#include <vector>
+
+// misc functions used in the implementation cpp files
+
+namespace gras
+{
+ PMCC ptree_to_pmc(const boost::property_tree::ptree &value, const std::type_info &hint);
+ boost::property_tree::ptree pmc_to_ptree(const PMCC &value);
+
+ boost::property_tree::ptree json_to_ptree(const std::string &s);
+ std::string ptree_to_json(const boost::property_tree::ptree &p);
+}
+
+#endif /*INCLUDED_LIBGRAS_IMPL_QUERY_COMMON_HPP*/