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
CancellationStruct.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
2
#define __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
#include <vector>
11
// StdAir
12
#include <
stdair/stdair_basic_types.hpp
>
13
#include <
stdair/basic/StructAbstract.hpp
>
14
#include <
stdair/bom/BookingClassTypes.hpp
>
15
#include <
stdair/bom/TravelSolutionTypes.hpp
>
16
#include <
stdair/bom/BomIDTypes.hpp
>
17
18
namespace
stdair {
19
23
struct
CancellationStruct
:
public
StructAbstract
{
24
public
:
25
// /////////// Getters ///////////////
27
const
SegmentPath_T
&
getSegmentPath
()
const
{
28
return
_segmentPath;
29
}
30
32
const
ClassList_String_T
&
getClassList
()
const
{
33
return
_classList;
34
}
35
37
const
BookingClassIDList_T
&
getClassIDList
()
const
{
38
return
_classIDList;
39
}
40
42
const
PartySize_T
&
getPartySize
()
const
{
43
return
_partySize;
44
}
45
47
const
DateTime_T
&
getCancellationDateTime
()
const
{
48
return
_datetime;
49
}
50
51
public
:
52
// /////////// Display support method /////////////
58
void
toStream
(std::ostream& ioOut)
const
;
59
64
void
fromStream
(std::istream& ioIn);
65
69
const
std::string
describe
()
const
;
70
74
const
std::string
display
()
const
;
75
76
77
public
:
78
// //////////// Constructors & Destructor ///////////////
82
CancellationStruct
(
const
SegmentPath_T
&,
const
ClassList_String_T
&,
83
const
PartySize_T
&,
const
DateTime_T
&);
84
88
CancellationStruct
(
const
SegmentPath_T
&,
const
BookingClassIDList_T
&,
89
const
PartySize_T
&,
const
DateTime_T
&);
90
94
~CancellationStruct
();
95
96
97
private
:
98
// ///////////////////// Attributes //////////////////////
102
SegmentPath_T
_segmentPath;
103
107
ClassList_String_T
_classList;
108
112
BookingClassIDList_T
_classIDList;
113
117
PartySize_T
_partySize;
118
122
DateTime_T
_datetime;
123
};
124
125
}
126
#endif // __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1