1.00.15
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
RMEventStruct.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
#include <sstream>
7
// StdAir
8
#include <
stdair/bom/RMEventStruct.hpp
>
9
10
namespace
stdair
{
11
12
// //////////////////////////////////////////////////////////////////////
13
RMEventStruct::RMEventStruct
() {
14
assert (
false
);
15
}
16
17
// //////////////////////////////////////////////////////////////////////
18
RMEventStruct::
19
RMEventStruct
(
const
RMEventStruct
& iRMEvent)
20
: _airlineCode (iRMEvent._airlineCode),
21
_flightDateDescription (iRMEvent._flightDateDescription),
22
_RMEventTime (iRMEvent._RMEventTime) {
23
}
24
25
// //////////////////////////////////////////////////////////////////////
26
RMEventStruct::
27
RMEventStruct
(
const
AirlineCode_T
& iAirlineCode,
28
const
KeyDescription_T
& iFlightDateDescription,
29
const
DateTime_T
& iRMEventTime)
30
: _airlineCode (iAirlineCode),
31
_flightDateDescription (iFlightDateDescription),
32
_RMEventTime (iRMEventTime) {
33
}
34
35
// //////////////////////////////////////////////////////////////////////
36
RMEventStruct::~RMEventStruct
() {
37
}
38
39
// //////////////////////////////////////////////////////////////////////
40
void
RMEventStruct::toStream
(std::ostream& ioOut)
const
{
41
ioOut <<
describe
();
42
}
43
44
// //////////////////////////////////////////////////////////////////////
45
void
RMEventStruct::fromStream
(std::istream& ioIn) {
46
}
47
48
// //////////////////////////////////////////////////////////////////////
49
const
std::string
RMEventStruct::describe
()
const
{
50
std::ostringstream oStr;
51
oStr << _airlineCode <<
", "
<< _flightDateDescription <<
", "
52
<< _RMEventTime;
53
return
oStr.str();
54
}
55
56
}
RMEventStruct.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DateTime_T
boost::posix_time::ptime DateTime_T
Definition
stdair_date_time_types.hpp:26
stdair::KeyDescription_T
std::string KeyDescription_T
Definition
stdair_basic_types.hpp:28
stdair::AirlineCode_T
std::string AirlineCode_T
Definition
stdair_basic_types.hpp:31
stdair::RMEventStruct
Definition
RMEventStruct.hpp:19
stdair::RMEventStruct::describe
const std::string describe() const
Definition
RMEventStruct.cpp:49
stdair::RMEventStruct::toStream
void toStream(std::ostream &ioOut) const
Definition
RMEventStruct.cpp:40
stdair::RMEventStruct::RMEventStruct
RMEventStruct()
Definition
RMEventStruct.cpp:13
stdair::RMEventStruct::fromStream
void fromStream(std::istream &ioIn)
Definition
RMEventStruct.cpp:45
stdair::RMEventStruct::~RMEventStruct
~RMEventStruct()
Definition
RMEventStruct.cpp:36
Generated for StdAir by
1.11.0