AirInv Logo  1.00.8
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
BomRootHelper.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6// STDAIR
7#include <stdair/bom/BomManager.hpp>
8#include <stdair/bom/BomRoot.hpp>
9#include <stdair/bom/Inventory.hpp>
10// AIRINV
13
14namespace AIRINV {
15 // ////////////////////////////////////////////////////////////////////
16 void BomRootHelper::fillFromRouting (const stdair::BomRoot& iBomRoot) {
17 const stdair::InventoryList_T& lInventoryList =
18 stdair::BomManager::getList<stdair::Inventory> (iBomRoot);
19
20 // Browse the list of inventories and update each inventory.
21 for (stdair::InventoryList_T::const_iterator itInventory =
22 lInventoryList.begin();
23 itInventory != lInventoryList.end(); ++itInventory) {
24 const stdair::Inventory* lCurrentInventory_ptr = *itInventory;
25 assert (lCurrentInventory_ptr != NULL);
26 InventoryHelper::fillFromRouting (*lCurrentInventory_ptr);
27 }
28 }
29
30}
static void fillFromRouting(const stdair::BomRoot &)
static void fillFromRouting(const stdair::Inventory &)