1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
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
template
<
typename
BOM>
friend
class
FacCloneBom
;
21
friend
class
FacBomManager
;
22
23
public
:
24
// //////////// Type definitions //////////////
28
typedef
AirportPairKey
Key_T
;
29
30
public
:
31
// /////////// Display support methods /////////
37
void
toStream
(std::ostream& ioOut)
const
{
38
ioOut <<
toString
();
39
}
40
46
void
fromStream
(std::istream& ioIn) {
47
}
48
52
std::string
toString
()
const
;
53
57
const
std::string
describeKey
()
const
{
58
return
_key
.
toString
();
59
}
60
61
public
:
62
// ////////// Getters ////////////
66
const
Key_T
&
getKey
()
const
{
67
return
_key
;
68
}
69
73
const
AirportCode_T
&
getBoardingPoint
()
const
{
74
return
_key
.
getBoardingPoint
();
75
}
76
80
const
AirportCode_T
&
getOffPoint
()
const
{
81
return
_key
.
getOffPoint
();
82
}
83
87
BomAbstract
*
const
getParent
()
const
{
88
return
_parent
;
89
}
90
94
const
HolderMap_T
&
getHolderMap
()
const
{
95
return
_holderMap
;
96
}
97
98
protected
:
99
// ////////// Constructors and destructors /////////
103
AirportPair
(
const
Key_T
&);
107
virtual
~AirportPair
();
108
109
private
:
113
AirportPair
();
117
AirportPair
(
const
AirportPair
&);
118
119
protected
:
120
// ///////////// Attributes /////////////
124
Key_T
_key
;
125
129
BomAbstract
*
_parent
;
130
134
HolderMap_T
_holderMap
;
135
136
};
137
138
}
139
#endif // __STDAIR_BOM_AIRPORTPAIR_HPP
140
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1