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
FlightPeriod.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_FLIGHTPERIOD_HPP
2
#define __STDAIR_BOM_FLIGHTPERIOD_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STDAIR
8
#include <
stdair/bom/BomAbstract.hpp
>
9
#include <
stdair/bom/FlightPeriodKey.hpp
>
10
#include <
stdair/bom/FlightPeriodTypes.hpp
>
11
12
namespace
stdair {
13
15
class
FlightPeriod
:
public
BomAbstract
{
16
template
<
typename
BOM>
friend
class
FacBom
;
17
template
<
typename
BOM>
friend
class
FacCloneBom
;
18
friend
class
FacBomManager
;
19
20
public
:
21
// Type definitions.
23
typedef
FlightPeriodKey
Key_T
;
24
25
public
:
26
// /////////// Getters ///////////////
28
const
Key_T
&
getKey
()
const
{
return
_key
; }
29
31
BomAbstract
*
const
getParent
()
const
{
return
_parent
; }
32
34
const
FlightNumber_T
&
getFlightNumber
()
const
{
35
return
_key
.
getFlightNumber
();
36
}
37
39
const
PeriodStruct
&
getPeriod
()
const
{
return
_key
.
getPeriod
(); }
40
42
const
HolderMap_T
&
getHolderMap
()
const
{
return
_holderMap
; }
43
44
45
public
:
46
// /////////// Display support methods /////////
49
void
toStream
(std::ostream& ioOut)
const
{ ioOut <<
toString
(); }
50
53
void
fromStream
(std::istream& ioIn) { }
54
56
std::string
toString
()
const
;
57
59
const
std::string
describeKey
()
const
{
return
_key
.
toString
(); }
60
61
protected
:
65
FlightPeriod
(
const
Key_T
&);
66
70
~FlightPeriod
();
71
72
private
:
73
77
FlightPeriod
();
78
82
FlightPeriod
(
const
FlightPeriod
&);
83
84
protected
:
85
// Attributes
86
Key_T
_key
;
87
BomAbstract
*
_parent
;
88
HolderMap_T
_holderMap
;
89
};
90
91
}
92
#endif // __STDAIR_BOM_FLIGHTPERIOD_HPP
93
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1