Go to the documentation of this file.00001
00002
00003
00004
00005 #include <cassert>
00006
00007 #include <stdair/basic/BasFileMgr.hpp>
00008 #include <stdair/bom/BomRoot.hpp>
00009
00010 #include <airsched/command/OnDParserHelper.hpp>
00011 #include <airsched/command/OnDParser.hpp>
00012
00013 namespace AIRSCHED {
00014
00015
00016 void OnDParser::generateOnDPeriods (const stdair::Filename_T& iFilename,
00017 stdair::BomRoot& ioBomRoot) {
00018
00019
00020 const bool doesExistAndIsReadable =
00021 stdair::BasFileMgr::doesExistAndIsReadable (iFilename);
00022
00023 if (doesExistAndIsReadable == false) {
00024 throw OnDInputFileNotFoundException ("The O&D file " + iFilename
00025 + " does not exist or can not be "
00026 "read");
00027 }
00028
00029
00030 OnDPeriodFileParser lOnDPeriodParser (iFilename, ioBomRoot);
00031
00032
00033
00034 lOnDPeriodParser.generateOnDPeriods();
00035 }
00036
00037 }