AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRINV::Request Struct Reference

#include <airinv/server/Request.hpp>

List of all members.

Public Member Functions

bool parseFlightDate ()

Public Attributes

std::string _flightDetails
stdair::AirlineCode_T _airlineCode
stdair::FlightNumber_T _flightNumber
stdair::Date_T _departureDate

Detailed Description

A request received from a client.

Definition at line 18 of file Request.hpp.

Member Function Documentation

bool AIRINV::Request::parseFlightDate ( )

Parse the incoming request.
Expected requested is of the form: <airline_code>,<flight_number>,<flight_date>, where date format is YYYY-MM-DD. For instance: BA,341,2010-09-20.

Definition at line 12 of file Request.cpp.

References _airlineCode, _departureDate, and _flightNumber.

Referenced by AIRINV::RequestHandler::handleRequest().

Member Data Documentation

std::string AIRINV::Request::_flightDetails

String as it comes from the connected client.

Definition at line 29 of file Request.hpp.

Referenced by AIRINV::RequestHandler::handleRequest().

stdair::AirlineCode_T AIRINV::Request::_airlineCode

Parsed airline code.

Definition at line 31 of file Request.hpp.

Referenced by parseFlightDate().

stdair::FlightNumber_T AIRINV::Request::_flightNumber

Parsed flight number.

Definition at line 33 of file Request.hpp.

Referenced by parseFlightDate().

stdair::Date_T AIRINV::Request::_departureDate

Parsed departure date.

Definition at line 35 of file Request.hpp.

Referenced by parseFlightDate().

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