AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OnDPeriodStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRTSP_BOM_ONDPERIODSTRUCT_HPP
2 #define __AIRTSP_BOM_ONDPERIODSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
10 #include <stdair/stdair_inventory_types.hpp>
11 #include <stdair/basic/StructAbstract.hpp>
12 
13 namespace AIRTSP {
14 
16  struct OnDPeriodStruct : public stdair::StructAbstract {
17  public:
18  // /////////// Getters //////////////
20  const stdair::AirlineCode_T& getFirstAirlineCode () const;
21 
23  stdair::Date_T getDate() const;
24 
26  stdair::Duration_T getTime() const;
27 
28  // ///////// Display Methods //////////
30  const std::string describe() const;
31 
34  const std::string describeTSKey() const;
35 
36  public:
38  OnDPeriodStruct ();
39 
40  public:
41  // Attributes
42  stdair::AirportCode_T _origin;
43  stdair::AirportCode_T _destination;
44  stdair::DatePeriod_T _datePeriod;
45  stdair::Duration_T _timeRangeStart;
46  stdair::Duration_T _timeRangeEnd;
47  stdair::NbOfAirlines_T _nbOfAirlines;
48  stdair::AirlineCode_T _airlineCode;
49  stdair::ClassCode_T _classCode;
50  stdair::AirlineCodeList_T _airlineCodeList;
51  stdair::ClassCodeList_T _classCodeList;
52 
54  stdair::Date_T _dateRangeStart;
55  stdair::Date_T _dateRangeEnd;
56  unsigned int _itYear;
57  unsigned int _itMonth;
58  unsigned int _itDay;
59 
61  long _itHours;
62  long _itMinutes;
63  long _itSeconds;
64  };
65 }
66 #endif // __AIRTSP_BOM_ONDPERIODSTRUCT_HPP