AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
OnDPeriodStruct.hpp
Go to the documentation of this file.
00001 #ifndef __AIRSCHED_BOM_ONDPERIODSTRUCT_HPP
00002 #define __AIRSCHED_BOM_ONDPERIODSTRUCT_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 // StdAir
00010 #include <stdair/stdair_inventory_types.hpp>
00011 #include <stdair/basic/StructAbstract.hpp>
00012 
00013 namespace AIRSCHED {
00015   struct OnDPeriodStruct : public stdair::StructAbstract {
00016   public:
00017     // /////////// Getters //////////////      
00019     const stdair::AirlineCode_T& getFirstAirlineCode () const;
00020 
00022     stdair::Date_T getDate() const;
00023 
00025     stdair::Duration_T getTime() const;
00026       
00027     // ///////// Display Methods //////////
00029     const std::string describe() const;
00030 
00033     const std::string describeTSKey() const;
00034       
00035   public:
00037     OnDPeriodStruct ();
00038       
00039   public:
00040     // Attributes
00041     stdair::AirportCode_T _origin;
00042     stdair::AirportCode_T _destination;
00043     stdair::DatePeriod_T _datePeriod;
00044     stdair::Duration_T _timeRangeStart;
00045     stdair::Duration_T _timeRangeEnd;
00046     stdair::NbOfAirlines_T _nbOfAirlines;
00047     stdair::AirlineCode_T _airlineCode;
00048     stdair::ClassCode_T _classCode; 
00049     stdair::AirlineCodeList_T _airlineCodeList;
00050     stdair::ClassCodeList_T _classCodeList;
00051 
00053     stdair::Date_T _dateRangeStart;
00054     stdair::Date_T _dateRangeEnd;
00055     unsigned int _itYear;
00056     unsigned int _itMonth;
00057     unsigned int _itDay;
00058 
00060     long _itHours;
00061     long _itMinutes;
00062     long _itSeconds;
00063   };
00064 }
00065 #endif // __AIRSCHED_BOM_ONDPERIODSTRUCT_HPP