00001 #ifndef __STDAIR_BOM_RMEVENTSTRUCT_HPP 00002 #define __STDAIR_BOM_RMEVENTSTRUCT_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <iosfwd> 00009 #include <string> 00010 // StdAir 00011 #include <stdair/stdair_inventory_types.hpp> 00012 #include <stdair/stdair_demand_types.hpp> 00013 #include <stdair/basic/StructAbstract.hpp> 00014 #include <stdair/bom/RMEventTypes.hpp> 00015 00016 namespace stdair { 00017 00019 struct RMEventStruct : public StructAbstract { 00020 public: 00021 // /////////////// Getters ///////////////// 00023 const AirlineCode_T& getAirlineCode() const { 00024 return _airlineCode; 00025 } 00026 00028 const KeyDescription_T& getFlightDateDescription() const { 00029 return _flightDateDescription; 00030 } 00031 00033 const DateTime_T& getRMEventTime() const { 00034 return _snapshotTime; 00035 } 00036 00037 // /////////// Display support method ///////////// 00040 void toStream (std::ostream& ioOut) const; 00041 00044 void fromStream (std::istream& ioIn); 00045 00047 const std::string describe() const; 00048 00049 00050 // /////////////// Constructors and Destructors ///////////////// 00051 public: 00053 RMEventStruct (const AirlineCode_T&, const KeyDescription_T&, 00054 const DateTime_T&); 00055 00057 RMEventStruct (const RMEventStruct&); 00058 00061 RMEventStruct (); 00062 00063 public: 00065 ~RMEventStruct(); 00066 00067 00068 private: 00069 // /////////////// Attributes ///////////////// 00071 const AirlineCode_T _airlineCode; 00072 00074 const KeyDescription_T _flightDateDescription; 00075 00077 const DateTime_T _snapshotTime; 00078 }; 00079 00080 } 00081 #endif // __STDAIR_BOM_RMEVENTSTRUCT_HPP