12 #ifndef __STDAIR_STDAIR_HPP
13 #define __STDAIR_STDAIR_HPP
36 struct ProgressStatusSet;
37 struct BookingRequestStruct;
248 const Date_T& iDepartureDate)
const;
314 const Date_T& iDepartureDate)
const;
329 const Date_T& iDepartureDate)
const;
368 const Date_T& iDepartureDate)
const;
390 const Date_T& iDepartureDate)
const;
455 void initServiceContext();
523 const std::string& iPath);
533 template <
typename ValueType>
551 template <
typename ValueType>
553 const std::string& iPath) {
556 assert (_stdairServiceContext != NULL);
558 *_stdairServiceContext;
562 lSTDAIR_ServiceContext.getConfigHolder();
565 return lConfigHolder.
exportValue <ValueType> (ioValue, iPath);
570 #endif // __STDAIR_STDAIR_HPP
bool check(const AirlineCode_T &, const FlightNumber_T &, const Date_T &iDepartureDate) const
LocationCode_T AirportCode_T
void importINIConfig(const ConfigINIFile &)
Import the configuration INI input file (format cfg).
const BasDBParams & getDBParams() const
bool exportValue(ValueType &ioValue, const std::string &iPath) const
unsigned short FlightNumber_T
Structure holding the parameters for connection to a database.
Handle on the StdAir library context.
STDAIR_Service()
Default constructor.
void buildSampleTravelSolutions(TravelSolutionList_T &)
void updateAirlineFeatures()
Update the airline features objects thanks to the configuration holder.
void buildSampleTravelSolutionForPricing(TravelSolutionList_T &)
std::string AirlineCode_T
std::string jsonExportFlightDateObjects(const AirlineCode_T &, const FlightNumber_T &, const Date_T &iDepartureDate) const
Enumeration of service initialisation types.
BomRoot & getBomRoot() const
Get a reference on the BomRoot object.
std::string jsonExportConfiguration() const
BomRoot & getPersistentBomRoot() const
Get a reference on the BomRoot object.
std::string jsonExportFlightDateList(const AirlineCode_T &iAirlineCode="all", const FlightNumber_T &iFlightNumber=0) const
Structure holding parameters for logging.
std::string jsonExportEventObject(const EventStruct &) const
void buildDummyLegSegmentAccesses(BomRoot &)
BasLogParams getLogParams() const
bool exportConfigValue(ValueType &ioValue, const std::string &iPath)
std::list< TravelSolutionStruct > TravelSolutionList_T
Class holding the context of the Stdair services.
std::string configDisplay() const
std::string csvDisplay() const
void clonePersistentBom()
Clone the persistent Bom.
boost::gregorian::date Date_T
std::string list(const AirlineCode_T &iAirlineCode="all", const FlightNumber_T &iFlightNumber=0) const
void buildDummyInventory(const CabinCapacity_T &iCabinCapacity)
Class representing the actual attributes for the Bom root.
std::string listAirportPairDateRange() const
const ServiceInitialisationType & getServiceInitialisationType() const
Structure holding the elements of a booking request.
BookingRequestStruct buildSampleBookingRequest(const bool isForCRS=false)
bool jsonImportConfiguration(const JSONString &) const
Interface for the STDAIR Services.
~STDAIR_Service()
Destructor.
void importConfigValue(const std::string &iValue, const std::string &iPath)