$treeview $search $mathjax
StdAir Logo  1.00.1
$projectbrief
$projectbrief
$searchbox

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 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 &)

Detailed Description

Utility class to import StdAir objects in a JSON format.

Definition at line 26 of file BomJSONImport.hpp.


Member Function Documentation

bool stdair::BomJSONImport::jsonImportCommand ( const JSONString ,
JSonCommand::EN_JSonCommand  
) [static]

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.

Definition at line 32 of file BomJSONImport.cpp.

References stdair::JSonCommand::getCommand(), and stdair::JSONString::getString().

bool stdair::BomJSONImport::jsonImportInventoryKey ( const JSONString ,
AirlineCode_T  
) [static]

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.

Definition at line 98 of file BomJSONImport.cpp.

References stdair::JSONString::getString().

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.

Definition at line 133 of file BomJSONImport.cpp.

References stdair::JSONString::getString().

bool stdair::BomJSONImport::jsonImportFlightNumber ( const JSONString ,
FlightNumber_T  
) [static]

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.

Definition at line 167 of file BomJSONImport.cpp.

References stdair::JSONString::getString().

bool stdair::BomJSONImport::jsonImportBreakPoints ( const JSONString ,
BreakPointList_T  
) [static]

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.

Definition at line 203 of file BomJSONImport.cpp.

References stdair::JSONString::getString().

bool stdair::BomJSONImport::jsonImportEventType ( const JSONString ,
EventType::EN_EventType  
) [static]

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.

Definition at line 253 of file BomJSONImport.cpp.

References stdair::JSONString::getString().

bool stdair::BomJSONImport::jsonImportConfig ( const JSONString ,
ConfigHolderStruct  
) [static]

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.

Definition at line 296 of file BomJSONImport.cpp.

References stdair::ConfigHolderStruct::add(), and stdair::JSONString::getString().

Referenced by stdair::STDAIR_Service::jsonImportConfiguration().


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