Add sax converter from json to xml
[anna.git] / include / anna / json / functions.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef anna_json_functions_hpp
10 #define anna_json_functions_hpp
11
12
13 #include <anna/json/SaxConsumer.hpp>
14
15
16 namespace anna {
17
18 namespace json {
19
20 struct functions {
21
22   /**
23      Convert json representation into xml equivalent
24
25      @param json Json representation
26      @param success operation result
27
28      @return xml representation for the json provided
29   */
30   static std::string json2xml(const std::string &json, bool & success);
31
32 };
33
34 }
35 }
36
37 #endif