StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
BomDisplay.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_BOMDISPLAY_HPP
00002 #define __STDAIR_BOM_BOMDISPLAY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <iosfwd>
00009 // StdAir
00010 #include <stdair/bom/TravelSolutionTypes.hpp>
00011 #include <stdair/bom/DatePeriodTypes.hpp>
00012 
00013 namespace stdair {
00014 
00016   class BomRoot;
00017   class EventQueue;
00018   class Inventory;
00019   class FlightDate;
00020   class LegDate;
00021   class SegmentDate;
00022   class LegCabin;
00023   class SegmentCabin;
00024   class FareFamily;
00025   class BookingClass;
00026   class AirportPair;
00027   class PosChannel;
00028   class DatePeriod;
00029   class TimePeriod;
00030   class FareFeatures;
00031   class YieldFeatures;
00032   class AirlineClassList;
00033   class OnDDate;
00034 
00039   class BomDisplay {
00040   public:
00041     // //////////////// Display support methods /////////////////
00050     static std::string csvDisplay (const EventQueue&);
00051 
00066     static void list (std::ostream&, const BomRoot&,
00067                       const AirlineCode_T& iAirlineCode = "all",
00068                       const FlightNumber_T& iFlightNumber = 0);
00069 
00083     static void list (std::ostream&, const Inventory&,
00084                       const unsigned short iInventoryIndex = 0,
00085                       const FlightNumber_T& iFlightNumber = 0);
00086 
00095     static void listAirportPairDateRange (std::ostream&,
00096                                           const BomRoot&);
00097 
00106     static void csvDisplay (std::ostream&, const BomRoot&);
00107 
00116     static void csvDisplay (std::ostream&, const Inventory&);
00117 
00125     static void csvDisplay (std::ostream&, const OnDDate&);
00126 
00135     static void csvDisplay (std::ostream&, const FlightDate&);
00136 
00145     static void csvLegDateDisplay (std::ostream&, const FlightDate&);
00146 
00155     static void csvSegmentDateDisplay (std::ostream&, const FlightDate&);
00156 
00165     static void csvLegCabinDisplay (std::ostream&, const FlightDate&);
00166 
00175     static void csvSegmentCabinDisplay (std::ostream&, const FlightDate&);
00176 
00185     static void csvFareFamilyDisplay (std::ostream&, const FlightDate&);
00186 
00195     static void csvBucketDisplay (std::ostream&, const FlightDate&);
00196 
00206     static void csvBookingClassDisplay (std::ostream&, const BookingClass&,
00207                                         const std::string& iLeadingString);
00216     static void csvBookingClassDisplay (std::ostream&, const FlightDate&);
00217 
00226     static void csvDisplay (std::ostream&, const TravelSolutionList_T&);
00227 
00236     static void csvDisplay (std::ostream&, const DatePeriodList_T&);
00237 
00246     static void csvSimFQTAirRACDisplay (std::ostream&, const BomRoot&);
00247 
00257     static void csvAirportPairDisplay (std::ostream&, const AirportPair&);
00258 
00268     static void csvDateDisplay (std::ostream&, const DatePeriod&);
00269 
00279     static void csvPosChannelDisplay (std::ostream&, const PosChannel&);
00280 
00290     static void csvTimeDisplay (std::ostream&, const TimePeriod&);
00291 
00300     template <typename FEATURE_TYPE>
00301     static void csvFeatureListDisplay (std::ostream& oStream, const TimePeriod&);
00302 
00311     template <typename FEATURE_TYPE>
00312     static void csvFeaturesDisplay (std::ostream& oStream, const FEATURE_TYPE&);
00313 
00322     static void csvAirlineClassDisplay (std::ostream&, const AirlineClassList&);
00323   };
00324   
00325 }
00326 #endif // __STDAIR_BOM_BOMDISPLAY_HPP