$treeview $search $mathjax
StdAir Logo  1.00.2
$projectbrief
$projectbrief
$searchbox

stdair/bom/CancellationStruct.hpp

Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
00002 #define __STDAIR_BOM_CANCELLATIONSTRUCT_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <iosfwd>
00009 #include <string>
00010 #include <vector>
00011 // StdAir
00012 #include <stdair/stdair_basic_types.hpp>
00013 #include <stdair/basic/StructAbstract.hpp>
00014 #include <stdair/bom/BookingClassTypes.hpp>
00015 #include <stdair/bom/TravelSolutionTypes.hpp>
00016 #include <stdair/bom/BomIDTypes.hpp>
00017 
00018 namespace stdair {
00019 
00023   struct CancellationStruct : public StructAbstract {
00024   public:
00025     // /////////// Getters ///////////////
00027     const SegmentPath_T& getSegmentPath() const {
00028       return _segmentPath;
00029     }
00030 
00032     const ClassList_String_T& getClassList() const {
00033       return _classList;
00034     }
00035 
00037     const BookingClassIDList_T& getClassIDList() const {
00038       return _classIDList;
00039     }
00040 
00042     const PartySize_T& getPartySize() const {
00043       return _partySize;
00044     }
00045 
00047     const DateTime_T& getCancellationDateTime() const {
00048       return _datetime;
00049     }
00050 
00051   public:
00052     // /////////// Display support method /////////////
00058     void toStream (std::ostream& ioOut) const;
00059 
00064     void fromStream (std::istream& ioIn);
00065 
00069     const std::string describe() const;
00070   
00074     const std::string display() const;
00075   
00076 
00077   public:
00078     // //////////// Constructors & Destructor ///////////////
00082     CancellationStruct (const SegmentPath_T&, const ClassList_String_T&,
00083                         const PartySize_T&, const DateTime_T&);
00084     
00088     CancellationStruct (const SegmentPath_T&, const BookingClassIDList_T&,
00089                         const PartySize_T&, const DateTime_T&);
00090 
00094     ~CancellationStruct();
00095     
00096 
00097   private:
00098     // ///////////////////// Attributes //////////////////////
00102     SegmentPath_T _segmentPath;
00103 
00107     ClassList_String_T _classList;
00108 
00112     BookingClassIDList_T _classIDList;
00113 
00117     PartySize_T _partySize;
00118 
00122     DateTime_T _datetime;
00123   };
00124 
00125 }
00126 #endif // __STDAIR_BOM_CANCELLATIONSTRUCT_HPP