StdAir Logo  0.44.0
C++ Standard Airline IT Object Library
BookingClassKey.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_BOOKINGCLASSKEY_HPP
00002 #define __STDAIR_BOM_BOOKINGCLASSKEY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // StdAir
00008 #include <stdair/stdair_basic_types.hpp>
00009 #include <stdair/bom/KeyAbstract.hpp>
00010 
00011 namespace stdair {
00012   
00016   struct BookingClassKey : public KeyAbstract {
00017     
00018     // /////////// Constructors and destructors ///////////
00019   private:
00021     BookingClassKey();
00022 
00023   public:
00025     BookingClassKey (const ClassCode_T& iClassCode);
00027     BookingClassKey (const BookingClassKey&);
00029     ~BookingClassKey();
00030     
00031 
00032     // /////////// Getters //////////
00034     const ClassCode_T& getClassCode () const {
00035       return _classCode;
00036     }
00037     
00038 
00039     // /////////// Display support methods /////////
00042     void toStream (std::ostream& ioOut) const;
00043 
00046     void fromStream (std::istream& ioIn);
00047 
00053     const std::string toString() const;
00054     
00055 
00056   private:
00057     // ///////////////// Attributes ///////////////
00059     ClassCode_T _classCode;
00060   };
00061 
00062 }
00063 #endif // __STDAIR_BOM_BOOKINGCLASSKEY_HPP