$treeview $search $mathjax
00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <cassert> 00006 #include <sstream> 00007 // StdAir 00008 #include <stdair/bom/RMEventStruct.hpp> 00009 00010 namespace stdair { 00011 00012 // ////////////////////////////////////////////////////////////////////// 00013 RMEventStruct::RMEventStruct() { 00014 assert (false); 00015 } 00016 00017 // ////////////////////////////////////////////////////////////////////// 00018 RMEventStruct:: 00019 RMEventStruct (const RMEventStruct& iRMEvent) 00020 : _airlineCode (iRMEvent._airlineCode), 00021 _flightDateDescription (iRMEvent._flightDateDescription), 00022 _RMEventTime (iRMEvent._RMEventTime) { 00023 } 00024 00025 // ////////////////////////////////////////////////////////////////////// 00026 RMEventStruct:: 00027 RMEventStruct (const AirlineCode_T& iAirlineCode, 00028 const KeyDescription_T& iFlightDateDescription, 00029 const DateTime_T& iRMEventTime) 00030 : _airlineCode (iAirlineCode), 00031 _flightDateDescription (iFlightDateDescription), 00032 _RMEventTime (iRMEventTime) { 00033 } 00034 00035 // ////////////////////////////////////////////////////////////////////// 00036 RMEventStruct::~RMEventStruct() { 00037 } 00038 00039 // ////////////////////////////////////////////////////////////////////// 00040 void RMEventStruct::toStream (std::ostream& ioOut) const { 00041 ioOut << describe(); 00042 } 00043 00044 // ////////////////////////////////////////////////////////////////////// 00045 void RMEventStruct::fromStream (std::istream& ioIn) { 00046 } 00047 00048 // ////////////////////////////////////////////////////////////////////// 00049 const std::string RMEventStruct::describe() const { 00050 std::ostringstream oStr; 00051 oStr << _airlineCode << ", " << _flightDateDescription << ", " 00052 << _RMEventTime; 00053 return oStr.str(); 00054 } 00055 00056 }