1.00.8
C++ Standard Airline IT Object Library
SegmentPeriodKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_SEGMENTPERIODKEY_HPP
2
#define __STDAIR_BOM_SEGMENTPERIODKEY_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// StdAir
8
#include <
stdair/stdair_basic_types.hpp
>
9
#include <
stdair/bom/KeyAbstract.hpp
>
10
11
namespace
stdair
{
12
14
struct
SegmentPeriodKey
:
public
KeyAbstract
{
15
16
private
:
17
// /////////// Default constructor //////////
18
SegmentPeriodKey
() { };
19
public
:
20
// /////////// Construction ///////////
22
SegmentPeriodKey
(
const
AirportCode_T
&,
const
AirportCode_T
&);
23
SegmentPeriodKey
(
const
SegmentPeriodKey
&);
25
~SegmentPeriodKey
();
26
27
// /////////// Getters //////////
29
const
AirportCode_T
&
getBoardingPoint
()
const
{
30
return
_boardingPoint;
31
}
32
34
const
AirportCode_T
&
getOffPoint
()
const
{
35
return
_offPoint;
36
}
37
38
// /////////// Display support methods /////////
41
void
toStream
(std::ostream& ioOut)
const
;
42
45
void
fromStream
(std::istream& ioIn);
46
52
const
std::string
toString
()
const
;
53
54
private
:
55
// Attributes
57
AirportCode_T
_boardingPoint;
58
60
AirportCode_T
_offPoint;
61
};
62
63
}
64
#endif // __STDAIR_BOM_SEGMENTPERIODKEY_HPP
stdair::SegmentPeriodKey::toStream
void toStream(std::ostream &ioOut) const
Definition:
SegmentPeriodKey.cpp:27
stdair::SegmentPeriodKey::fromStream
void fromStream(std::istream &ioIn)
Definition:
SegmentPeriodKey.cpp:32
stdair::SegmentPeriodKey
Definition:
SegmentPeriodKey.hpp:14
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition:
stdair_basic_types.hpp:22
stdair::SegmentPeriodKey::~SegmentPeriodKey
~SegmentPeriodKey()
Definition:
SegmentPeriodKey.cpp:23
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::SegmentPeriodKey::getOffPoint
const AirportCode_T & getOffPoint() const
Definition:
SegmentPeriodKey.hpp:34
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition:
KeyAbstract.hpp:27
stdair_basic_types.hpp
KeyAbstract.hpp
stdair::SegmentPeriodKey::toString
const std::string toString() const
Definition:
SegmentPeriodKey.cpp:36
stdair::SegmentPeriodKey::getBoardingPoint
const AirportCode_T & getBoardingPoint() const
Definition:
SegmentPeriodKey.hpp:29
Generated for StdAir by
1.8.17