0.07.4
C++ Open Travel Request Parsing Library
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
13
#include <
opentrep/LocationList.hpp
>
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
OPENTREP::BomJSONExport
Utility class to export Opentrep structures in a JSON format.
Definition:
BomJSONExport.hpp:25
OPENTREP::BomJSONExport::jsonExportLocationList
static void jsonExportLocationList(std::ostream &, const LocationList_T &)
Definition:
BomJSONExport.cpp:18
LocationList.hpp
OPENTREP::Location
Structure modelling a (geographical) location.
Definition:
Location.hpp:25
OPENTREP::LocationList_T
std::list< Location > LocationList_T
Definition:
LocationList.hpp:13
OPENTREP
Definition:
BasChronometer.cpp:10
OPENTREP::BomJSONExport::jsonExportLocation
static void jsonExportLocation(bpt::ptree &, const Location &)
Definition:
BomJSONExport.cpp:93
Generated on Thu Dec 19 2019 00:00:00 for OpenTREP by
1.8.16