1.01.0
C++ Simulated Airline Travel Solution Provider Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FlightPeriodStruct.hpp
Go to the documentation of this file.
1
#ifndef __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP
2
#define __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
// StdAir
10
#include <stdair/stdair_basic_types.hpp>
11
#include <stdair/basic/StructAbstract.hpp>
12
#include <stdair/bom/DoWStruct.hpp>
13
// AirTSP
14
#include <
airtsp/bom/LegCabinStruct.hpp
>
15
#include <
airtsp/bom/LegStruct.hpp
>
16
#include <
airtsp/bom/SegmentStruct.hpp
>
17
#include <
airtsp/bom/SegmentCabinStruct.hpp
>
18
#include <
airtsp/bom/FareFamilyStruct.hpp
>
19
#include <
airtsp/bom/AirportList.hpp
>
20
21
namespace
AIRTSP {
22
26
struct
FlightPeriodStruct
:
public
stdair::StructAbstract {
27
29
stdair::Date_T
getDate
()
const
;
30
32
stdair::Duration_T
getTime
()
const
;
33
35
const
std::string
describe
()
const
;
36
39
void
addAirport
(
const
stdair::AirportCode_T&);
40
42
void
buildSegments
();
43
50
void
addSegmentCabin
(
const
SegmentStruct
&,
51
const
SegmentCabinStruct
&);
52
58
void
addSegmentCabin
(
const
SegmentCabinStruct
&);
59
66
void
addFareFamily
(
const
SegmentStruct
&,
67
const
SegmentCabinStruct
&,
68
const
FareFamilyStruct
&);
69
75
void
addFareFamily
(
const
SegmentCabinStruct
&,
76
const
FareFamilyStruct
&);
77
81
FlightPeriodStruct
();
82
83
// Attributes
84
stdair::AirlineCode_T
_airlineCode
;
85
stdair::FlightNumber_T
_flightNumber
;
86
stdair::DatePeriod_T
_dateRange
;
87
stdair::DoWStruct
_dow
;
88
LegStructList_T
_legList
;
89
SegmentStructList_T
_segmentList
;
90
93
bool
_legAlreadyDefined
;
94
LegStruct
_itLeg
;
95
LegCabinStruct
_itLegCabin
;
96
98
stdair::Date_T
_dateRangeStart
;
99
stdair::Date_T
_dateRangeEnd
;
100
unsigned
int
_itYear
;
101
unsigned
int
_itMonth
;
102
unsigned
int
_itDay
;
103
int
_dateOffset
;
104
106
long
_itHours
;
107
long
_itMinutes
;
108
long
_itSeconds
;
109
112
AirportList_T
_airportList
;
113
AirportOrderedList_T
_airportOrderedList
;
114
116
bool
_areSegmentDefinitionsSpecific
;
117
SegmentStruct
_itSegment
;
118
SegmentCabinStruct
_itSegmentCabin
;
119
};
120
121
}
122
#endif // __AIRTSP_BOM_FLIGHTPERIODSTRUCT_HPP
Generated on Sun Jun 9 2013 12:36:19 for AirTSP by
1.8.3.1