1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
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
AirportPairKey.hpp
AirportPairTypes.hpp
BomAbstract.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition
stdair_basic_types.hpp:22
stdair::AirportPair
Class representing the actual attributes for an airport-pair.
Definition
AirportPair.hpp:18
stdair::AirportPair::_parent
BomAbstract * _parent
Definition
AirportPair.hpp:129
stdair::AirportPair::AirportPair
AirportPair(const Key_T &)
Definition
AirportPair.cpp:27
stdair::AirportPair::toStream
void toStream(std::ostream &ioOut) const
Definition
AirportPair.hpp:37
stdair::AirportPair::getParent
BomAbstract *const getParent() const
Definition
AirportPair.hpp:87
stdair::AirportPair::getOffPoint
const AirportCode_T & getOffPoint() const
Definition
AirportPair.hpp:80
stdair::AirportPair::toString
std::string toString() const
Definition
AirportPair.cpp:36
stdair::AirportPair::_key
Key_T _key
Definition
AirportPair.hpp:124
stdair::AirportPair::describeKey
const std::string describeKey() const
Definition
AirportPair.hpp:57
stdair::AirportPair::_holderMap
HolderMap_T _holderMap
Definition
AirportPair.hpp:134
stdair::AirportPair::~AirportPair
virtual ~AirportPair()
Definition
AirportPair.cpp:32
stdair::AirportPair::FacBom
friend class FacBom
Definition
AirportPair.hpp:19
stdair::AirportPair::getBoardingPoint
const AirportCode_T & getBoardingPoint() const
Definition
AirportPair.hpp:73
stdair::AirportPair::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
AirportPair.hpp:94
stdair::AirportPair::FacCloneBom
friend class FacCloneBom
Definition
AirportPair.hpp:20
stdair::AirportPair::FacBomManager
friend class FacBomManager
Definition
AirportPair.hpp:21
stdair::AirportPair::getKey
const Key_T & getKey() const
Definition
AirportPair.hpp:66
stdair::AirportPair::Key_T
AirportPairKey Key_T
Definition
AirportPair.hpp:28
stdair::AirportPair::fromStream
void fromStream(std::istream &ioIn)
Definition
AirportPair.hpp:46
stdair::AirportPairKey
Key of airport-pair.
Definition
AirportPairKey.hpp:16
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
Generated for StdAir by
1.17.0