1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
FlightDateKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_FLIGHTDATEKEY_HPP
2
#define __STDAIR_BOM_FLIGHTDATEKEY_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// StdAir
11
#include <
stdair/stdair_basic_types.hpp
>
12
#include <
stdair/stdair_date_time_types.hpp
>
13
#include <
stdair/bom/KeyAbstract.hpp
>
14
16
namespace
boost
{
17
namespace
serialization
{
18
class
access;
19
}
20
}
21
22
namespace
stdair
{
23
28
struct
FlightDateKey :
public
KeyAbstract
{
29
friend
class
boost::serialization::access
;
30
31
// /////////// Constructors and destructors ///////////
32
private
:
36
FlightDateKey();
37
38
public
:
42
FlightDateKey (
const
FlightNumber_T
&,
const
Date_T
&);
43
47
FlightDateKey (
const
FlightDateKey&);
48
52
~FlightDateKey
();
53
54
55
public
:
56
// /////////// Getters //////////
58
const
FlightNumber_T
&
getFlightNumber
()
const
{
59
return
_flightNumber;
60
}
61
63
const
Date_T
&
getDepartureDate
()
const
{
64
return
_departureDate;
65
}
66
67
68
public
:
69
// /////////// Display support methods /////////
75
void
toStream
(std::ostream& ioOut)
const
;
76
82
void
fromStream
(std::istream& ioIn);
83
93
const
std::string
toString
()
const
;
94
95
96
public
:
97
// /////////// (Boost) Serialisation support methods /////////
101
template
<
class
Archive>
102
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
103
104
private
:
109
void
serialisationImplementationExport()
const
;
110
void
serialisationImplementationImport();
111
112
113
private
:
114
// ///////////////// Attributes ///////////////
118
FlightNumber_T
_flightNumber;
119
123
Date_T
_departureDate;
124
};
125
126
}
127
#endif
// __STDAIR_BOM_FLIGHTDATEKEY_HPP
KeyAbstract.hpp
stdair_basic_types.hpp
stdair_date_time_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::Date_T
boost::gregorian::date Date_T
Definition
stdair_date_time_types.hpp:20
stdair::FlightNumber_T
unsigned short FlightNumber_T
Definition
stdair_basic_types.hpp:34
boost
Forward declarations.
Definition
AirlineClassList.hpp:16
boost::serialization
Definition
AirlineClassList.hpp:17
stdair::FlightDateKey::fromStream
void fromStream(std::istream &ioIn)
Definition
FlightDateKey.cpp:48
stdair::FlightDateKey::toString
const std::string toString() const
Definition
FlightDateKey.cpp:52
stdair::FlightDateKey::serialize
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition
FlightDateKey.cpp:77
stdair::FlightDateKey::access
friend class boost::serialization::access
Definition
FlightDateKey.hpp:29
stdair::FlightDateKey::getDepartureDate
const Date_T & getDepartureDate() const
Definition
FlightDateKey.hpp:63
stdair::FlightDateKey::getFlightNumber
const FlightNumber_T & getFlightNumber() const
Definition
FlightDateKey.hpp:58
stdair::FlightDateKey::toStream
void toStream(std::ostream &ioOut) const
Definition
FlightDateKey.cpp:43
stdair::FlightDateKey::~FlightDateKey
~FlightDateKey()
Definition
FlightDateKey.cpp:39
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition
KeyAbstract.hpp:27
Generated for StdAir by
1.17.0