StdAir Logo  1.00.20
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
BomJSONImport.hpp
Go to the documentation of this file.
1#ifndef __STDAIR_BOM_BOMJSONIMPORT_HPP
2#define __STDAIR_BOM_BOMJSONIMPORT_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STL
8#include <string>
9// StdAir
15
16
17namespace stdair {
18
20 class JSONString;
21 struct ConfigHolderStruct;
22
27 public:
28 // //////////////// Import support methods /////////////////
36 static bool jsonImportCommand (const JSONString&,
45 static bool jsonImportInventoryKey (const JSONString&,
47
55 static bool jsonImportFlightDate (const JSONString&,
56 Date_T&);
57
65 static bool jsonImportFlightNumber (const JSONString&,
67
75 static bool jsonImportBreakPoints (const JSONString&,
77
85 static bool jsonImportEventType (const JSONString&,
87
96 static bool jsonImportConfig (const JSONString&,
98 };
99
100}
101#endif // __STDAIR_BOM_BOMJSONIMPORT_HPP
Handle on the StdAir library context.
boost::gregorian::date Date_T
std::list< BreakPointStruct > BreakPointList_T
unsigned short FlightNumber_T
std::string AirlineCode_T
Utility class to import StdAir objects in a JSON format.
static bool jsonImportInventoryKey(const JSONString &, AirlineCode_T &)
static bool jsonImportCommand(const JSONString &, JSonCommand::EN_JSonCommand &)
static bool jsonImportFlightDate(const JSONString &, Date_T &)
static bool jsonImportEventType(const JSONString &, EventType::EN_EventType &)
static bool jsonImportConfig(const JSONString &, ConfigHolderStruct &)
static bool jsonImportBreakPoints(const JSONString &, BreakPointList_T &)
static bool jsonImportFlightNumber(const JSONString &, FlightNumber_T &)
JSON-formatted string.