1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
SegmentDateKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_SEGMENTDATEKEY_HPP
2
#define __STDAIR_BOM_SEGMENTDATEKEY_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// StdAir
8
#include <
stdair/stdair_basic_types.hpp
>
9
#include <
stdair/bom/KeyAbstract.hpp
>
10
12
namespace
boost
{
13
namespace
serialization
{
14
class
access;
15
}
16
}
17
18
namespace
stdair
{
19
24
struct
SegmentDateKey :
public
KeyAbstract
{
25
friend
class
boost::serialization::access
;
26
27
// /////////// Constructors and destructors ///////////
28
private
:
32
SegmentDateKey();
33
34
public
:
38
SegmentDateKey (
const
AirportCode_T
&,
const
AirportCode_T
&);
42
SegmentDateKey (
const
SegmentDateKey&);
46
~SegmentDateKey
();
47
48
49
// /////////// Getters //////////
51
const
AirportCode_T
&
getBoardingPoint
()
const
{
52
return
_boardingPoint;
53
}
54
56
const
AirportCode_T
&
getOffPoint
()
const
{
57
return
_offPoint;
58
}
59
60
61
// /////////// Display support methods /////////
67
void
toStream
(std::ostream& ioOut)
const
;
68
74
void
fromStream
(std::istream& ioIn);
75
85
const
std::string
toString
()
const
;
86
87
88
public
:
89
// /////////// (Boost) Serialisation support methods /////////
93
template
<
class
Archive>
94
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
95
96
private
:
101
void
serialisationImplementationExport()
const
;
102
void
serialisationImplementationImport();
103
104
105
private
:
106
// ///////////////// Attributes ///////////////
110
AirportCode_T
_boardingPoint;
111
115
AirportCode_T
_offPoint;
116
};
117
118
}
119
#endif
// __STDAIR_BOM_SEGMENTDATEKEY_HPP
KeyAbstract.hpp
stdair_basic_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition
stdair_basic_types.hpp:22
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition
KeyAbstract.hpp:27
stdair::SegmentDateKey::getOffPoint
const AirportCode_T & getOffPoint() const
Definition
SegmentDateKey.hpp:56
stdair::SegmentDateKey::getBoardingPoint
const AirportCode_T & getBoardingPoint() const
Definition
SegmentDateKey.hpp:51
stdair::SegmentDateKey::fromStream
void fromStream(std::istream &ioIn)
Definition
SegmentDateKey.cpp:45
stdair::SegmentDateKey::toStream
void toStream(std::ostream &ioOut) const
Definition
SegmentDateKey.cpp:40
stdair::SegmentDateKey::toString
const std::string toString() const
Definition
SegmentDateKey.cpp:49
stdair::SegmentDateKey::access
friend class boost::serialization::access
Definition
SegmentDateKey.hpp:25
stdair::SegmentDateKey::~SegmentDateKey
~SegmentDateKey()
Definition
SegmentDateKey.cpp:36
stdair::SegmentDateKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
SegmentDateKey.cpp:72
Generated for StdAir by
1.17.0