1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
FlightDate.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_FLIGHTDATE_HPP
2
#define __STDAIR_BOM_FLIGHTDATE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <
stdair/stdair_inventory_types.hpp
>
12
#include <
stdair/bom/BomAbstract.hpp
>
13
#include <
stdair/bom/FlightDateKey.hpp
>
14
#include <
stdair/bom/FlightDateTypes.hpp
>
15
17
namespace
boost
{
18
namespace
serialization
{
19
class
access;
20
}
21
namespace
archive
{
22
namespace
detail
{
23
template
<
class
T>
24
struct
heap_allocation
;
25
}
26
}
27
}
28
29
30
namespace
stdair
{
31
33
struct
LegDateKey;
34
class
LegDate;
35
struct
SegmentDateKey;
36
class
SegmentDate;
37
42
class
FlightDate
:
public
BomAbstract
{
43
template
<
typename
BOM>
friend
class
FacBom
;
44
template
<
typename
BOM>
friend
class
FacCloneBom
;
45
friend
class
FacBomManager
;
46
friend
class
boost::serialization::access
;
47
template
<
class
T>
friend
struct
boost::archive::detail::heap_allocation
;
48
49
public
:
50
// ////////// Type definitions ////////////
54
typedef
FlightDateKey
Key_T
;
55
56
57
public
:
58
// /////////// Getters ///////////////
60
const
Key_T
&
getKey
()
const
{
61
return
_key
;
62
}
63
65
BomAbstract
*
const
getParent
()
const
{
66
return
_parent
;
67
}
68
70
const
FlightNumber_T
&
getFlightNumber
()
const
{
71
return
_key
.getFlightNumber();
72
}
73
75
const
Date_T
&
getDepartureDate
()
const
{
76
return
_key
.getDepartureDate();
77
}
78
86
const
AirlineCode_T
&
getAirlineCode
()
const
;
87
91
const
HolderMap_T
&
getHolderMap
()
const
{
92
return
_holderMap
;
93
}
94
105
LegDate
*
getLegDate
(
const
std::string& iLegDateKeyStr)
const
;
106
117
LegDate
*
getLegDate
(
const
LegDateKey
&)
const
;
118
129
SegmentDate
*
getSegmentDate
(
const
std::string& iSegmentDateKeyStr)
const
;
130
141
SegmentDate
*
getSegmentDate
(
const
SegmentDateKey
&)
const
;
142
143
public
:
144
// /////////// Display support methods /////////
150
void
toStream
(std::ostream& ioOut)
const
{
151
ioOut <<
toString
();
152
}
153
159
void
fromStream
(std::istream& ioIn) {
160
}
161
165
std::string
toString
()
const
;
166
170
const
std::string
describeKey
()
const
{
171
return
_key
.toString();
172
}
173
174
175
public
:
176
// /////////// (Boost) Serialisation support methods /////////
180
template
<
class
Archive>
181
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
182
183
private
:
191
void
serialisationImplementationExport()
const
;
192
void
serialisationImplementationImport();
193
194
195
protected
:
196
// ////////// Constructors and destructors /////////
200
FlightDate
(
const
Key_T
&);
201
205
virtual
~FlightDate
();
206
207
private
:
211
FlightDate
();
212
216
FlightDate
(
const
FlightDate
&);
217
218
219
protected
:
220
// ////////// Attributes /////////
224
Key_T
_key
;
225
229
BomAbstract
*
_parent
;
230
234
HolderMap_T
_holderMap
;
235
};
236
237
}
238
#endif
// __STDAIR_BOM_FLIGHTDATE_HPP
239
BomAbstract.hpp
FlightDateKey.hpp
FlightDateTypes.hpp
stdair_inventory_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::Date_T
boost::gregorian::date Date_T
Definition
stdair_date_time_types.hpp:20
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::FlightNumber_T
unsigned short FlightNumber_T
Definition
stdair_basic_types.hpp:34
stdair::AirlineCode_T
std::string AirlineCode_T
Definition
stdair_basic_types.hpp:31
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
boost::archive
Definition
FlightDate.hpp:21
boost::archive::detail
Definition
FlightDate.hpp:22
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
boost::archive::detail::heap_allocation
Definition
FlightDate.hpp:24
stdair::FlightDate
Class representing the actual attributes for an airline flight-date.
Definition
FlightDate.hpp:42
stdair::FlightDate::_key
Key_T _key
Definition
FlightDate.hpp:224
stdair::FlightDate::_holderMap
HolderMap_T _holderMap
Definition
FlightDate.hpp:234
stdair::FlightDate::describeKey
const std::string describeKey() const
Definition
FlightDate.hpp:170
stdair::FlightDate::getSegmentDate
SegmentDate * getSegmentDate(const std::string &iSegmentDateKeyStr) const
Definition
FlightDate.cpp:65
stdair::FlightDate::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
FlightDate.hpp:91
stdair::FlightDate::~FlightDate
virtual ~FlightDate()
Definition
FlightDate.cpp:33
stdair::FlightDate::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
CmdBomSerialiser.cpp:187
stdair::FlightDate::getAirlineCode
const AirlineCode_T & getAirlineCode() const
Definition
FlightDate.cpp:37
stdair::FlightDate::getFlightNumber
const FlightNumber_T & getFlightNumber() const
Definition
FlightDate.hpp:70
stdair::FlightDate::getParent
BomAbstract *const getParent() const
Definition
FlightDate.hpp:65
stdair::FlightDate::fromStream
void fromStream(std::istream &ioIn)
Definition
FlightDate.hpp:159
stdair::FlightDate::getLegDate
LegDate * getLegDate(const std::string &iLegDateKeyStr) const
Definition
FlightDate.cpp:52
stdair::FlightDate::_parent
BomAbstract * _parent
Definition
FlightDate.hpp:229
stdair::FlightDate::FacBom
friend class FacBom
Definition
FlightDate.hpp:43
stdair::FlightDate::Key_T
FlightDateKey Key_T
Definition
FlightDate.hpp:54
stdair::FlightDate::FacCloneBom
friend class FacCloneBom
Definition
FlightDate.hpp:44
stdair::FlightDate::access
friend class boost::serialization::access
Definition
FlightDate.hpp:46
stdair::FlightDate::FacBomManager
friend class FacBomManager
Definition
FlightDate.hpp:45
stdair::FlightDate::toString
std::string toString() const
Definition
FlightDate.cpp:45
stdair::FlightDate::toStream
void toStream(std::ostream &ioOut) const
Definition
FlightDate.hpp:150
stdair::FlightDate::getDepartureDate
const Date_T & getDepartureDate() const
Definition
FlightDate.hpp:75
stdair::FlightDate::FlightDate
FlightDate(const Key_T &)
Definition
FlightDate.cpp:29
stdair::FlightDate::getKey
const Key_T & getKey() const
Definition
FlightDate.hpp:60
stdair::FlightDateKey
Key of a given flight-date, made of a flight number and a departure date.
Definition
FlightDateKey.hpp:28
stdair::LegDate
Definition
LegDate.hpp:25
stdair::LegDateKey
Definition
LegDateKey.hpp:16
stdair::SegmentDate
Class representing the actual attributes for an airline segment-date.
Definition
SegmentDate.hpp:42
stdair::SegmentDateKey
Key of a given segment-date, made of an origin and a destination airports.
Definition
SegmentDateKey.hpp:24
Generated for StdAir by
1.17.0