Utility class to import StdAir objects in a JSON format. More...
#include <stdair/bom/BomJSONImport.hpp>
Static Public Member Functions | |
static bool | jsonImportCommand (const JSONString &, JSonCommand::EN_JSonCommand &) |
static bool | jsonImportInventoryKey (const JSONString &, AirlineCode_T &) |
static bool | jsonImportFlightDate (const JSONString &, Date_T &) |
static bool | jsonImportFlightNumber (const JSONString &, FlightNumber_T &) |
static bool | jsonImportBreakPoints (const JSONString &, BreakPointList_T &) |
static bool | jsonImportEventType (const JSONString &, EventType::EN_EventType &) |
static bool | jsonImportConfig (const JSONString &, ConfigHolderStruct &) |
Utility class to import StdAir objects in a JSON format.
Definition at line 26 of file BomJSONImport.hpp.
|
static |
Extract the JSON command from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
JSonCommand::EN_JSonCommand& | JSOM command extracted from the given string. |
Definition at line 32 of file BomJSONImport.cpp.
References stdair::JSonCommand::getCommand(), and stdair::JSONString::getString().
|
static |
Extract the airline code from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
AirlineCode_T& | Airline code extracted from the given string. |
Definition at line 98 of file BomJSONImport.cpp.
References stdair::JSONString::getString().
|
static |
Extract the FlightDate from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
Date_T& | Departure date extracted from the given string. |
Definition at line 133 of file BomJSONImport.cpp.
References stdair::JSONString::getString().
|
static |
Extract the FlightNumber from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
FlightNumber_T& | Flight number extracted from the given string. |
Definition at line 167 of file BomJSONImport.cpp.
References stdair::JSONString::getString().
|
static |
Extract the break points from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
BreakPointList_T& | List of breaking points extracted from the given string. |
Definition at line 203 of file BomJSONImport.cpp.
References stdair::JSONString::getString().
|
static |
Extract the event type from a given JSON-formatted string.
const | JSONString& JSON-formatted string. |
EventType::EN_EventType& | Event type extracted from the given string. |
Definition at line 253 of file BomJSONImport.cpp.
References stdair::JSONString::getString().
|
static |
Extract the configuration ptree from the given JSON-formatted string and add it to the configuration holder
const | JSONString& JSON-formatted string. |
ConfigHolderStruct& | Configuration holder. |
Definition at line 296 of file BomJSONImport.cpp.
References stdair::ConfigHolderStruct::add(), and stdair::JSONString::getString().
Referenced by stdair::STDAIR_Service::jsonImportConfiguration().