StdAir Logo  0.43.0
C++ Standard Airline IT Library
AirlineFeatureKey.cpp
Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <sstream>
00006 // StdAir
00007 #include <stdair/bom/AirlineFeatureKey.hpp>
00008 
00009 namespace stdair {
00010 
00011   // ////////////////////////////////////////////////////////////////////
00012   AirlineFeatureKey::AirlineFeatureKey (const AirlineCode_T& iAirlineCode)
00013     : _airlineCode (iAirlineCode) {
00014   }
00015 
00016   // ////////////////////////////////////////////////////////////////////
00017   AirlineFeatureKey::~AirlineFeatureKey () {
00018   }
00019 
00020   // ////////////////////////////////////////////////////////////////////
00021   void AirlineFeatureKey::toStream (std::ostream& ioOut) const {
00022     ioOut << "AirlineFeatureKey: " << toString() << std::endl;
00023   }
00024 
00025   // ////////////////////////////////////////////////////////////////////
00026   void AirlineFeatureKey::fromStream (std::istream& ioIn) {
00027   }
00028 
00029   // ////////////////////////////////////////////////////////////////////
00030   const std::string AirlineFeatureKey::toString() const {
00031     std::ostringstream oStr;
00032     oStr << _airlineCode;
00033     return oStr.str();
00034   }
00035 
00036 }