From: <den...@us...> - 2010-03-27 18:15:55
|
Revision: 163 http://stdair.svn.sourceforge.net/stdair/?rev=163&view=rev Author: denis_arnaud Date: 2010-03-27 18:15:49 +0000 (Sat, 27 Mar 2010) Log Message: ----------- [API] Added a few type definitions. Modified Paths: -------------- trunk/stdair/stdair/STDAIR_Types.hpp Modified: trunk/stdair/stdair/STDAIR_Types.hpp =================================================================== --- trunk/stdair/stdair/STDAIR_Types.hpp 2010-03-21 10:50:15 UTC (rev 162) +++ trunk/stdair/stdair/STDAIR_Types.hpp 2010-03-27 18:15:49 UTC (rev 163) @@ -98,9 +98,15 @@ /** Define the type for network ID. */ typedef std::string NetworkID_T; - /** Define the type for airport codes. */ - typedef std::string AirportCode_T; + /** Define the Airline Code type (2-letter-code, e.g., BA). */ + typedef std::string AirlineCode_T; + /** Location code (3-letter-code, e.g., LON). */ + typedef std::string LocationCode_T; + + /** Define the Airport Code type (3-letter-code, e.g., LHR). */ + typedef LocationCode_T AirportCode_T; + /** Define the type for flight numbers. */ typedef unsigned short FlightNumber_T; @@ -116,12 +122,6 @@ /** Define the seed type of an Uniform function. */ typedef unsigned long int UniformSeed_T; - /** Define the Airline Code type (2-letter-code, e.g., BA). */ - typedef std::string AirlineCode_T; - - /** Define the Airport Code type (3-letter-code, e.g., LHR). */ - typedef std::string AirportCode_T; - /** Define the Request status for booking (1-letter-code, e.g., B: booked, C: cancelled, R: Rejected). */ typedef std::string RequestStatus_T; @@ -243,6 +243,11 @@ B, K, etc.). */ typedef std::string ClassCode_T; + /** Define the sub-class code (e.g., 0, 1, 2, etc.). The subclass is + a sub-structure for the booking class, allowing to have specific + rules for some criteria like POS. */ + typedef std::string SubclassCode_T; + /** Define the flight path code (code made by a suite of flight numbers). */ typedef std::string FlightPathCode_T; @@ -449,12 +454,6 @@ /** Count */ typedef int Count_T; - /** Location code */ - typedef std::string LocationCode_T; - - /** Airport code */ - typedef LocationCode_T AirportCode_T; - /** City code */ typedef LocationCode_T CityCode_T; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |