0.45.1
C++ Standard Airline IT Object Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EventStruct.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BAS_EVENTSTRUCT_HPP
2
#define __STDAIR_BAS_EVENTSTRUCT_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/stdair_event_types.hpp
>
14
#include <
stdair/basic/StructAbstract.hpp
>
15
#include <
stdair/basic/EventType.hpp
>
16
#include <
stdair/bom/EventTypes.hpp
>
17
#include <
stdair/bom/BookingRequestTypes.hpp
>
18
#include <
stdair/bom/OptimisationNotificationTypes.hpp
>
19
#include <
stdair/bom/SnapshotTypes.hpp
>
20
#include <
stdair/bom/CancellationTypes.hpp
>
21
#include <
stdair/bom/RMEventTypes.hpp
>
22
23
namespace
stdair {
24
35
struct
EventStruct
:
public
StructAbstract
{
36
// Friend classes and structures
37
friend
struct
EventQueue
;
38
39
// ///////////// Getters ///////////
40
public
:
42
const
EventType::EN_EventType
&
getEventType
()
const
{
43
return
_eventType;
44
}
45
52
const
BookingRequestStruct
&
getBookingRequest
()
const
{
53
assert (_bookingRequest != NULL);
54
return
*_bookingRequest;
55
}
56
63
const
CancellationStruct
&
getCancellation
()
const
{
64
assert (_cancellation != NULL);
65
return
*_cancellation;
66
}
67
75
const
OptimisationNotificationStruct
&
76
getOptimisationNotificationStruct
()
const
{
77
assert (_optimisationNotification != NULL);
78
return
*_optimisationNotification;
79
}
80
88
const
SnapshotStruct
&
getSnapshotStruct
()
const
{
89
assert (_snapshot != NULL);
90
return
*_snapshot;
91
}
92
100
const
RMEventStruct
&
getRMEvent
()
const
{
101
assert (_rmEvent != NULL);
102
return
*_rmEvent;
103
}
104
105
// ////////// Display methods //////////
106
public
:
109
void
fromStream
(std::istream& ioIn);
110
112
const
std::string
describe
()
const
;
113
114
115
// ////////// Constructors and destructors /////////
116
public
:
118
EventStruct
();
120
EventStruct
(
const
EventType::EN_EventType
&,
BookingRequestPtr_T
);
122
EventStruct
(
const
EventType::EN_EventType
&,
CancellationPtr_T
);
124
EventStruct
(
const
EventType::EN_EventType
&,
const
DateTime_T
& iDCPDate,
125
OptimisationNotificationPtr_T
);
127
EventStruct
(
const
EventType::EN_EventType
&,
SnapshotPtr_T
);
129
EventStruct
(
const
EventType::EN_EventType
&,
RMEventPtr_T
);
131
EventStruct
(
const
EventStruct
&);
132
134
~EventStruct
();
135
136
137
// ////////////////// Attributes //////////////////
138
private
:
142
EventType::EN_EventType
_eventType;
143
149
LongDuration_T
_eventTimeStamp;
150
154
BookingRequestPtr_T
_bookingRequest;
155
159
CancellationPtr_T
_cancellation;
160
164
OptimisationNotificationPtr_T
_optimisationNotification;
165
169
SnapshotPtr_T
_snapshot;
170
174
RMEventPtr_T
_rmEvent;
175
};
176
177
}
178
#endif // __STDAIR_BAS_EVENTSTRUCT_HPP
Generated on Fri Aug 17 2012 16:00:32 for StdAir by
1.8.1.2