$treeview $search $mathjax
00001 #ifndef __STDAIR_BOM_BOMJSONIMPORT_HPP 00002 #define __STDAIR_BOM_BOMJSONIMPORT_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <string> 00009 // StdAir 00010 #include <stdair/stdair_basic_types.hpp> 00011 #include <stdair/stdair_date_time_types.hpp> 00012 #include <stdair/basic/JSonCommand.hpp> 00013 #include <stdair/basic/EventType.hpp> 00014 #include <stdair/bom/BreakPointStruct.hpp> 00015 00016 00017 namespace stdair { 00018 00020 class JSONString; 00021 class ConfigHolderStruct; 00022 00026 class BomJSONImport { 00027 public: 00028 // //////////////// Import support methods ///////////////// 00036 static bool jsonImportCommand (const JSONString&, 00037 JSonCommand::EN_JSonCommand&); 00045 static bool jsonImportInventoryKey (const JSONString&, 00046 AirlineCode_T&); 00047 00055 static bool jsonImportFlightDate (const JSONString&, 00056 Date_T&); 00057 00065 static bool jsonImportFlightNumber (const JSONString&, 00066 FlightNumber_T&); 00067 00075 static bool jsonImportBreakPoints (const JSONString&, 00076 BreakPointList_T&); 00077 00085 static bool jsonImportEventType (const JSONString&, 00086 EventType::EN_EventType&); 00087 00096 static bool jsonImportConfig (const JSONString&, 00097 ConfigHolderStruct&); 00098 }; 00099 00100 } 00101 #endif // __STDAIR_BOM_BOMJSONIMPORT_HPP