AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DCPParser.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 #include <string>
7 // StdAir
8 #include <stdair/service/Logger.hpp>
9 // AirSched
10 #include <airinv/command/DCPParserHelper.hpp>
11 #include <airinv/command/DCPParser.hpp>
12 
13 namespace AIRINV {
14 
15  // //////////////////////////////////////////////////////////////////////
16  void DCPParser::DCPRuleGeneration (const stdair::Filename_T& iFilename,
17  stdair::BomRoot& ioBomRoot) {
18 
19  // Initialise the DCP file parser
20  DCPRuleFileParser lDCPRuleFileParser (ioBomRoot, iFilename);
21 
22  // Parse the CSV-formatted DCP input file and generate the
23  // corresponding DCP events
24  lDCPRuleFileParser.generateDCPRules();
25  }
26 
27 }