0.45.1
C++ Standard Airline IT Object Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AirportPair.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_AIRPORTPAIR_HPP
2
#define __STDAIR_BOM_AIRPORTPAIR_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STDAIR
8
#include <
stdair/bom/BomAbstract.hpp
>
9
#include <
stdair/bom/AirportPairKey.hpp
>
10
#include <
stdair/bom/AirportPairTypes.hpp
>
11
12
// Forward declaration
13
namespace
stdair {
14
18
class
AirportPair
:
public
BomAbstract
{
19
template
<
typename
BOM>
friend
class
FacBom
;
20
friend
class
FacBomManager
;
21
22
public
:
23
// //////////// Type definitions //////////////
27
typedef
AirportPairKey
Key_T
;
28
29
public
:
30
// /////////// Display support methods /////////
36
void
toStream
(std::ostream& ioOut)
const
{
37
ioOut <<
toString
();
38
}
39
45
void
fromStream
(std::istream& ioIn) {
46
}
47
51
std::string
toString
()
const
;
52
56
const
std::string
describeKey
()
const
{
57
return
_key
.
toString
();
58
}
59
60
public
:
61
// ////////// Getters ////////////
65
const
Key_T
&
getKey
()
const
{
66
return
_key
;
67
}
68
72
const
AirportCode_T
&
getBoardingPoint
()
const
{
73
return
_key
.
getBoardingPoint
();
74
}
75
79
const
AirportCode_T
&
getOffPoint
()
const
{
80
return
_key
.
getOffPoint
();
81
}
82
86
BomAbstract
*
const
getParent
()
const
{
87
return
_parent
;
88
}
89
93
const
HolderMap_T
&
getHolderMap
()
const
{
94
return
_holderMap
;
95
}
96
97
protected
:
98
// ////////// Constructors and destructors /////////
102
AirportPair
(
const
Key_T
&);
106
virtual
~AirportPair
();
107
108
private
:
112
AirportPair
();
116
AirportPair
(
const
AirportPair
&);
117
118
protected
:
119
// ///////////// Attributes /////////////
123
Key_T
_key
;
124
128
BomAbstract
*
_parent
;
129
133
HolderMap_T
_holderMap
;
134
135
};
136
137
}
138
#endif // __STDAIR_BOM_AIRPORTPAIR_HPP
139
Generated on Mon Aug 27 2012 21:34:02 for StdAir by
1.8.1.2