IDFstepper
IDF to STEP converter
src/IdfParser.cpp
Go to the documentation of this file.
00001 #include "../inc/IdfParser.hpp"
00002 #include "../inc/IdfGrammar.hpp"
00003 
00004 namespace idf {
00005   
00006   
00007   bool parseBoardPanel(
00008           std::string::const_iterator& iter,
00009           std::string::const_iterator end,
00010           BoardPanelStruct& idfStruct)
00011   {
00012     using boost::spirit::qi::phrase_parse;
00013     idf::BoardPanelGrammar<std::string::const_iterator> grammar;
00014     return phrase_parse(iter, end, grammar, grammar.skipper, idfStruct);
00015   }
00016   
00017   bool parseLibrary(
00018         std::string::const_iterator& iter,
00019         std::string::const_iterator end,
00020         LibraryStruct& idfStruct)
00021   {
00022     using boost::spirit::qi::phrase_parse;
00023     idf::LibraryGrammar<std::string::const_iterator> grammar;
00024     return phrase_parse(iter, end, grammar, grammar.skipper, idfStruct);
00025   }
00026 
00027 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines