OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BomJSONExport.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_BOM_BOMJSONEXPORT_HPP
2 #define __OPENTREP_BOM_BOMJSONEXPORT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 // Boost Property Tree (PT)
10 #include <boost/property_tree/ptree.hpp>
11 #include <boost/property_tree/json_parser.hpp>
12 // OpenTrep
14 
15 namespace bpt = boost::property_tree;
16 
17 namespace OPENTREP {
18 
19  // Forward declarations
20  struct Location;
21 
25  class BomJSONExport {
26  public:
27  // //////////////// Export support methods /////////////////
28 
37  static void jsonExportLocationList (std::ostream&, const LocationList_T&);
38 
47  static void jsonExportLocation (bpt::ptree&, const Location&);
48  };
49 
50 }
51 #endif // __OPENTREP_BOM_BOMJSONEXPORT_HPP
Structure modelling a (geographical) location.
Definition: Location.hpp:24
Utility class to export Opentrep structures in a JSON format.
std::list< Location > LocationList_T
static void jsonExportLocation(bpt::ptree &, const Location &)
static void jsonExportLocationList(std::ostream &, const LocationList_T &)