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
OnDDateKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_ONDDATEKEY_HPP
2
#define __STDAIR_BOM_ONDDATEKEY_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_demand_types.hpp
>
13
#include <
stdair/stdair_date_time_types.hpp
>
14
#include <
stdair/bom/KeyAbstract.hpp
>
15
16
namespace
stdair {
17
23
struct
OnDDateKey
:
public
KeyAbstract
{
24
friend
class
boost::serialization::access
;
25
26
// /////////// Constructors and destructors ///////////
27
private
:
31
OnDDateKey
();
32
33
public
:
37
OnDDateKey
(
const
OnDStringList_T
&);
38
42
OnDDateKey
(
const
OnDDateKey
&);
43
47
~OnDDateKey
();
48
49
50
public
:
51
// /////////// Getters //////////
55
const
Date_T
getDate
()
const
;
56
60
const
AirportCode_T
getOrigin
()
const
;
61
65
const
AirportCode_T
getDestination
()
const
;
66
70
const
short
getNbOfSegments
()
const
{
71
return
_OnDStringList.size();
72
}
73
74
public
:
75
// /////////// Display support methods /////////
81
void
toStream
(std::ostream& ioOut)
const
;
82
88
void
fromStream
(std::istream& ioIn);
89
99
const
std::string
toString
()
const
;
100
101
102
public
:
103
// /////////// (Boost) Serialisation support methods /////////
107
template
<
class
Archive>
108
void
serialize
(Archive& ar,
const
unsigned
int
iFileVersion);
109
110
private
:
115
void
serialisationImplementationExport()
const
;
116
void
serialisationImplementationImport();
117
118
119
private
:
120
// ///////////////// Attributes ///////////////
121
OnDStringList_T
_OnDStringList;
122
123
};
124
125
}
126
#endif // __STDAIR_BOM_ONDDATEKEY_HPP
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1