1.00.15
C++ Simulated Airline Inventory Management System Library
Toggle main menu visibility
Loading...
Searching...
No Matches
DCPEventStruct.hpp
Go to the documentation of this file.
1
#ifndef __AIRINV_BOM_DCPEVENTSTRUCT_HPP
2
#define __AIRINV_BOM_DCPEVENTSTRUCT_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
#include <vector>
10
// StdAir
11
#include <stdair/stdair_demand_types.hpp>
12
#include <stdair/stdair_inventory_types.hpp>
13
#include <stdair/basic/StructAbstract.hpp>
14
#include <stdair/basic/BasParserTypes.hpp>
15
// AirInv
16
#include <
airinv/AIRINV_Types.hpp
>
17
18
namespace
AIRINV
{
19
21
struct
DCPEventStruct
:
public
stdair::StructAbstract {
22
public
:
23
25
DCPEventStruct
();
26
28
stdair::Date_T
getDate
()
const
;
29
31
stdair::Duration_T
getTime
()
const
;
32
34
const
std::string
describe
()
const
;
35
37
const
unsigned
int
getAirlineListSize
()
const
{
38
return
_airlineCodeList
.size();
39
}
40
42
const
unsigned
int
getClassCodeListSize
()
const
{
43
return
_classCodeList
.size();
44
}
45
47
const
stdair::AirlineCode_T&
getFirstAirlineCode
()
const
;
48
52
void
beginAirline
();
53
56
bool
hasNotReachedEndAirline
()
const
;
57
59
stdair::AirlineCode_T
getCurrentAirlineCode
()
const
;
60
63
void
iterateAirline
();
64
66
const
std::string&
getFirstClassCode
()
const
;
67
71
void
beginClassCode
();
72
75
bool
hasNotReachedEndClassCode
()
const
;
76
78
std::string
getCurrentClassCode
()
const
;
79
82
void
iterateClassCode
();
83
84
public
:
85
// ////////////////// Attributes /////////////////
87
stdair::year_t
_itYear
;
88
stdair::month_t
_itMonth
;
89
stdair::day_t
_itDay
;
90
92
//long _itHours;
93
stdair::hour_t
_itHours
;
94
stdair::minute_t
_itMinutes
;
95
stdair::second_t
_itSeconds
;
96
98
stdair::AirlineCodeList_T::iterator
_itCurrentAirlineCode
;
99
101
stdair::ClassList_StringList_T::iterator
_itCurrentClassCode
;
102
104
stdair::AirportCode_T
_origin
;
105
107
stdair::AirportCode_T
_destination
;
108
110
stdair::Date_T
_dateRangeStart
;
111
113
stdair::Date_T
_dateRangeEnd
;
114
116
stdair::Duration_T
_timeRangeStart
;
117
119
stdair::Duration_T
_timeRangeEnd
;
120
122
stdair::CabinCode_T
_cabinCode
;
123
125
stdair::CityCode_T
_pos
;
126
128
stdair::ChannelLabel_T
_channel
;
129
131
stdair::DayDuration_T
_advancePurchase
;
132
134
stdair::SaturdayStay_T
_saturdayStay
;
135
137
stdair::ChangeFees_T
_changeFees
;
138
140
stdair::NonRefundable_T
_nonRefundable
;
141
143
stdair::DayDuration_T
_minimumStay
;
144
146
stdair::PriceValue_T
_DCP
;
147
149
stdair::AirlineCode_T
_airlineCode
;
150
152
stdair::ClassCode_T
_classCode
;
153
155
stdair::AirlineCodeList_T
_airlineCodeList
;
156
158
//unsigned long int _nbOfAirlines;
159
161
stdair::ClassList_StringList_T
_classCodeList
;
162
163
};
164
165
}
166
#endif
// __AIRINV_BOM_DCPEVENTSTRUCT_HPP
AIRINV_Types.hpp
AIRINV
Definition
AIRINV_Master_Service.hpp:38
AIRINV::DCPEventStruct::beginClassCode
void beginClassCode()
Definition
DCPEventStruct.cpp:127
AIRINV::DCPEventStruct::_advancePurchase
stdair::DayDuration_T _advancePurchase
Definition
DCPEventStruct.hpp:131
AIRINV::DCPEventStruct::_timeRangeStart
stdair::Duration_T _timeRangeStart
Definition
DCPEventStruct.hpp:116
AIRINV::DCPEventStruct::getTime
stdair::Duration_T getTime() const
Definition
DCPEventStruct.cpp:44
AIRINV::DCPEventStruct::_airlineCode
stdair::AirlineCode_T _airlineCode
Definition
DCPEventStruct.hpp:149
AIRINV::DCPEventStruct::_itCurrentClassCode
stdair::ClassList_StringList_T::iterator _itCurrentClassCode
Definition
DCPEventStruct.hpp:101
AIRINV::DCPEventStruct::_itMinutes
stdair::minute_t _itMinutes
Definition
DCPEventStruct.hpp:94
AIRINV::DCPEventStruct::hasNotReachedEndAirline
bool hasNotReachedEndAirline() const
Definition
DCPEventStruct.cpp:100
AIRINV::DCPEventStruct::iterateClassCode
void iterateClassCode()
Definition
DCPEventStruct.cpp:145
AIRINV::DCPEventStruct::_saturdayStay
stdair::SaturdayStay_T _saturdayStay
Definition
DCPEventStruct.hpp:134
AIRINV::DCPEventStruct::_changeFees
stdair::ChangeFees_T _changeFees
Definition
DCPEventStruct.hpp:137
AIRINV::DCPEventStruct::_nonRefundable
stdair::NonRefundable_T _nonRefundable
Definition
DCPEventStruct.hpp:140
AIRINV::DCPEventStruct::beginAirline
void beginAirline()
Definition
DCPEventStruct.cpp:95
AIRINV::DCPEventStruct::DCPEventStruct
DCPEventStruct()
Definition
DCPEventStruct.cpp:18
AIRINV::DCPEventStruct::getDate
stdair::Date_T getDate() const
Definition
DCPEventStruct.cpp:38
AIRINV::DCPEventStruct::_pos
stdair::CityCode_T _pos
Definition
DCPEventStruct.hpp:125
AIRINV::DCPEventStruct::_itYear
stdair::year_t _itYear
Definition
DCPEventStruct.hpp:87
AIRINV::DCPEventStruct::_itDay
stdair::day_t _itDay
Definition
DCPEventStruct.hpp:89
AIRINV::DCPEventStruct::hasNotReachedEndClassCode
bool hasNotReachedEndClassCode() const
Definition
DCPEventStruct.cpp:132
AIRINV::DCPEventStruct::_DCP
stdair::PriceValue_T _DCP
Definition
DCPEventStruct.hpp:146
AIRINV::DCPEventStruct::_channel
stdair::ChannelLabel_T _channel
Definition
DCPEventStruct.hpp:128
AIRINV::DCPEventStruct::getCurrentAirlineCode
stdair::AirlineCode_T getCurrentAirlineCode() const
Definition
DCPEventStruct.cpp:106
AIRINV::DCPEventStruct::_destination
stdair::AirportCode_T _destination
Definition
DCPEventStruct.hpp:107
AIRINV::DCPEventStruct::_classCodeList
stdair::ClassList_StringList_T _classCodeList
Definition
DCPEventStruct.hpp:161
AIRINV::DCPEventStruct::getAirlineListSize
const unsigned int getAirlineListSize() const
Definition
DCPEventStruct.hpp:37
AIRINV::DCPEventStruct::_airlineCodeList
stdair::AirlineCodeList_T _airlineCodeList
Definition
DCPEventStruct.hpp:155
AIRINV::DCPEventStruct::getCurrentClassCode
std::string getCurrentClassCode() const
Definition
DCPEventStruct.cpp:138
AIRINV::DCPEventStruct::_dateRangeEnd
stdair::Date_T _dateRangeEnd
Definition
DCPEventStruct.hpp:113
AIRINV::DCPEventStruct::getClassCodeListSize
const unsigned int getClassCodeListSize() const
Definition
DCPEventStruct.hpp:42
AIRINV::DCPEventStruct::iterateAirline
void iterateAirline()
Definition
DCPEventStruct.cpp:112
AIRINV::DCPEventStruct::_timeRangeEnd
stdair::Duration_T _timeRangeEnd
Definition
DCPEventStruct.hpp:119
AIRINV::DCPEventStruct::_itMonth
stdair::month_t _itMonth
Definition
DCPEventStruct.hpp:88
AIRINV::DCPEventStruct::_dateRangeStart
stdair::Date_T _dateRangeStart
Definition
DCPEventStruct.hpp:110
AIRINV::DCPEventStruct::getFirstAirlineCode
const stdair::AirlineCode_T & getFirstAirlineCode() const
Definition
DCPEventStruct.cpp:87
AIRINV::DCPEventStruct::describe
const std::string describe() const
Definition
DCPEventStruct.cpp:53
AIRINV::DCPEventStruct::_classCode
stdair::ClassCode_T _classCode
Definition
DCPEventStruct.hpp:152
AIRINV::DCPEventStruct::_minimumStay
stdair::DayDuration_T _minimumStay
Definition
DCPEventStruct.hpp:143
AIRINV::DCPEventStruct::_cabinCode
stdair::CabinCode_T _cabinCode
Definition
DCPEventStruct.hpp:122
AIRINV::DCPEventStruct::_itCurrentAirlineCode
stdair::AirlineCodeList_T::iterator _itCurrentAirlineCode
Definition
DCPEventStruct.hpp:98
AIRINV::DCPEventStruct::_itSeconds
stdair::second_t _itSeconds
Definition
DCPEventStruct.hpp:95
AIRINV::DCPEventStruct::getFirstClassCode
const std::string & getFirstClassCode() const
Definition
DCPEventStruct.cpp:119
AIRINV::DCPEventStruct::_itHours
stdair::hour_t _itHours
Definition
DCPEventStruct.hpp:93
AIRINV::DCPEventStruct::_origin
stdair::AirportCode_T _origin
Definition
DCPEventStruct.hpp:104
Generated on
for AirInv by
1.17.0