StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
stdair::BomJSONImport Class Reference

Utility class to import StdAir objects in a JSON format. More...

#include <stdair/bom/BomJSONImport.hpp>

List of all members.

Static Public Member Functions

static bool jsonImportInventoryKey (const std::string &iBomKey, AirlineCode_T &)
static bool jsonImportFlightDateKey (const std::string &iBomKey, FlightNumber_T &, Date_T &ioDepartureDate)

Detailed Description

Utility class to import StdAir objects in a JSON format.

Definition at line 18 of file BomJSONImport.hpp.


Member Function Documentation

bool stdair::BomJSONImport::jsonImportInventoryKey ( const std::string &  iBomKey,
AirlineCode_T ioAirlineCode 
) [static]

Extract the airline code from a given JSON-formatted string.

Parameters:
std::string&JSON-formatted string.
AirlineCode_T&Airline code extracted from the given string.
Returns:
bool State whether the extracting has been successful.

Definition at line 26 of file BomJSONImport.cpp.

bool stdair::BomJSONImport::jsonImportFlightDateKey ( const std::string &  iBomKey,
FlightNumber_T ioFlightNumber,
Date_T ioDepartureDate 
) [static]

Build a FlightDateKey from a given JSON-formatted string.

Parameters:
std::string&JSON-formatted string.
FlightNumber_T&Flight number extracted from the given string.
Date_T&Departure date extracted from the given string.
Returns:
bool State whether the extracting has been successful.

Definition at line 56 of file BomJSONImport.cpp.


The documentation for this class was generated from the following files: