OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
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
15namespace bpt = boost::property_tree;
16
17namespace OPENTREP {
18
19 // Forward declarations
20 struct Location;
21
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
Utility class to export Opentrep structures in a JSON format.
static void jsonExportLocationList(std::ostream &, const LocationList_T &)
static void jsonExportLocation(bpt::ptree &, const Location &)
std::list< Location > LocationList_T
Structure modelling a (geographical) location.
Definition Location.hpp:25