1.00.15
C++ Simulated Airline Inventory Management System Library
Toggle main menu visibility
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
11
#include <
airinv/bom/BomRootHelper.hpp
>
12
#include <
airinv/bom/InventoryHelper.hpp
>
13
14
namespace
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
}
BomRootHelper.hpp
InventoryHelper.hpp
AIRINV::BomRootHelper::fillFromRouting
static void fillFromRouting(const stdair::BomRoot &)
Definition
BomRootHelper.cpp:16
AIRINV::InventoryHelper::fillFromRouting
static void fillFromRouting(const stdair::Inventory &)
Definition
InventoryHelper.cpp:28
AIRINV
Definition
AIRINV_Master_Service.hpp:38
Generated on
for AirInv by
1.17.0