1 #ifndef __AIRINV_CMD_INVENTORYBUILDER_HPP
2 #define __AIRINV_CMD_INVENTORYBUILDER_HPP
8 #include <stdair/command/CmdAbstract.hpp>
30 struct FlightDateStruct;
32 struct LegCabinStruct;
35 struct SegmentCabinStruct;
36 struct FareFamilyStruct;
37 struct BookingClassStruct;
38 namespace InventoryParserHelper {
71 static void buildLegDate (stdair::FlightDate&,
const LegStruct&);
76 static void buildRoutingLegKey (stdair::FlightDate&);
82 static void buildLegCabin (stdair::LegDate&,
const LegCabinStruct&);
88 static void buildBucket (stdair::LegCabin&,
const BucketStruct&);
94 static void buildSegmentDate (stdair::FlightDate&,
const SegmentStruct&);
100 static void buildSegmentCabin (stdair::SegmentDate&,
107 static void buildFareFamily (stdair::SegmentCabin&,
114 static void buildBookingClass (stdair::FareFamily&,
120 static void buildPartnerInventories (stdair::BomRoot&);
125 static void buildPartnerInventories (stdair::BomRoot&,
131 static void buildPartnerInventories (stdair::BomRoot&,
133 stdair::FlightDate&);
136 static void buildInventory (stdair::BomRoot&,
138 const std::string& iFullKeyStr);
140 static void buildFlightDate (stdair::BomRoot&,
142 const std::string& iFullKeyStr);
151 static stdair::FlightDate& cloneFlightDate (
const stdair::FlightDate&);
160 static stdair::LegDate& cloneLegDate (
const stdair::LegDate&);
169 static stdair::LegCabin& cloneLegCabin (
const stdair::LegCabin&);
178 static stdair::Bucket& cloneBucket (
const stdair::Bucket&);
187 static stdair::SegmentDate& cloneSegmentDate (
const stdair::SegmentDate&);
196 static void linkBookingClassesWithSegment (stdair::SegmentDate&,
197 stdair::SegmentCabin&);
206 static stdair::SegmentCabin& cloneSegmentCabin (
const stdair::SegmentCabin&);
215 static stdair::FareFamily& cloneFareFamily (
const stdair::FareFamily&);
224 static stdair::BookingClass& cloneBookingClass (
const stdair::BookingClass&);
229 #endif // __AIRINV_CMD_INVENTORYBUILDER_HPP