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
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
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1