Add sax converter from json to xml
[anna.git] / include / anna / json / functions.hpp
diff --git a/include/anna/json/functions.hpp b/include/anna/json/functions.hpp
new file mode 100644 (file)
index 0000000..dc055dd
--- /dev/null
@@ -0,0 +1,37 @@
+// ANNA - Anna is Not Nothingness Anymore                                                         //
+//                                                                                                //
+// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
+//                                                                                                //
+// See project site at http://redmine.teslayout.com/projects/anna-suite                           //
+// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
+
+
+#ifndef anna_json_functions_hpp
+#define anna_json_functions_hpp
+
+
+#include <anna/json/SaxConsumer.hpp>
+
+
+namespace anna {
+
+namespace json {
+
+struct functions {
+
+  /**
+     Convert json representation into xml equivalent
+
+     @param json Json representation
+     @param success operation result
+
+     @return xml representation for the json provided
+  */
+  static std::string json2xml(const std::string &json, bool & success);
+
+};
+
+}
+}
+
+#endif