StdAir Logo  1.00.10
C++ Standard Airline IT Object Library
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 
17 namespace stdair {
18 
20  class JSONString;
21  struct ConfigHolderStruct;
22 
26  class BomJSONImport {
27  public:
28  // //////////////// Import support methods /////////////////
36  static bool jsonImportCommand (const JSONString&,
45  static bool jsonImportInventoryKey (const JSONString&,
46  AirlineCode_T&);
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
stdair::BomJSONImport::jsonImportCommand
static bool jsonImportCommand(const JSONString &, JSonCommand::EN_JSonCommand &)
Definition: BomJSONImport.cpp:35
stdair::AirlineCode_T
std::string AirlineCode_T
Definition: stdair_basic_types.hpp:31
stdair::JSonCommand::EN_JSonCommand
EN_JSonCommand
Definition: JSonCommand.hpp:19
stdair::BomJSONImport::jsonImportInventoryKey
static bool jsonImportInventoryKey(const JSONString &, AirlineCode_T &)
stdair::JSONString
JSON-formatted string.
Definition: stdair_json.hpp:16
stdair_date_time_types.hpp
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::BomJSONImport::jsonImportBreakPoints
static bool jsonImportBreakPoints(const JSONString &, BreakPointList_T &)
stdair::ConfigHolderStruct
Definition: ConfigHolderStruct.hpp:40
stdair::EventType::EN_EventType
EN_EventType
Definition: EventType.hpp:17
EventType.hpp
stdair_basic_types.hpp
stdair::BomJSONImport::jsonImportConfig
static bool jsonImportConfig(const JSONString &, ConfigHolderStruct &)
stdair::FlightNumber_T
unsigned short FlightNumber_T
Definition: stdair_basic_types.hpp:34
stdair::BreakPointList_T
std::list< BreakPointStruct > BreakPointList_T
Definition: BreakPointTypes.hpp:23
BreakPointStruct.hpp
JSonCommand.hpp
stdair::BomJSONImport::jsonImportFlightNumber
static bool jsonImportFlightNumber(const JSONString &, FlightNumber_T &)
stdair::BomJSONImport::jsonImportFlightDate
static bool jsonImportFlightDate(const JSONString &, Date_T &)
stdair::BomJSONImport
Utility class to import StdAir objects in a JSON format.
Definition: BomJSONImport.hpp:26
stdair::BomJSONImport::jsonImportEventType
static bool jsonImportEventType(const JSONString &, EventType::EN_EventType &)
stdair::Date_T
boost::gregorian::date Date_T
Definition: stdair_date_time_types.hpp:20