Utility class to import StdAir objects in a JSON format.
More...
#include <stdair/bom/BomJSONImport.hpp>
Utility class to import StdAir objects in a JSON format.
Definition at line 26 of file BomJSONImport.hpp.
◆ jsonImportCommand()
Extract the JSON command from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
JSonCommand::EN_JSonCommand& | JSOM command extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportInventoryKey()
Extract the airline code from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
AirlineCode_T& | Airline code extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportFlightDate()
static bool stdair::BomJSONImport::jsonImportFlightDate |
( |
const JSONString & |
, |
|
|
Date_T & |
|
|
) |
| |
|
static |
Extract the FlightDate from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
Date_T& | Departure date extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportFlightNumber()
Extract the FlightNumber from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
FlightNumber_T& | Flight number extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportBreakPoints()
Extract the break points from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
BreakPointList_T& | List of breaking points extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportEventType()
Extract the event type from a given JSON-formatted string.
- Parameters
-
const | JSONString& JSON-formatted string. |
EventType::EN_EventType& | Event type extracted from the given string. |
- Returns
- bool State whether the extracting has been successful.
◆ jsonImportConfig()
Extract the configuration ptree from the given JSON-formatted string and add it to the configuration holder
- Parameters
-
const | JSONString& JSON-formatted string. |
ConfigHolderStruct& | Configuration holder. |
- Returns
- bool State whether the extracting has been successful.
Referenced by stdair::STDAIR_Service::jsonImportConfiguration().
The documentation for this class was generated from the following file: