| 1 | cycrow | 1 | /*
 | 
        
           |  |  | 2 |   defines the bod_cut_parser - class that can parse bod format and create 
 | 
        
           |  |  | 3 |   bob_dom_cut object
 | 
        
           |  |  | 4 | */
 | 
        
           |  |  | 5 |   | 
        
           |  |  | 6 | #ifndef BOD_CUT_PARSER_INCLUDED
 | 
        
           |  |  | 7 | #define BOD_CUT_PARSER_INCLUDED
 | 
        
           |  |  | 8 |   | 
        
           |  |  | 9 | #include "bod_bob_parser.h"
 | 
        
           |  |  | 10 | #include "bob_dom_cut.h"
 | 
        
           |  |  | 11 | #include "settings.h"
 | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | class bod_cut_parser : public bod_bob_parser
 | 
        
           |  |  | 14 | {
 | 
        
           |  |  | 15 | 	private:
 | 
        
           |  |  | 16 | 		bob_dom_path * loadPath(bob_dom_cut *cut, token_stream& is);
 | 
        
           |  |  | 17 | 		bool loadNote(bob_dom_path *path, token_stream& is);
 | 
        
           |  |  | 18 | 		bool loadFrame(bob_dom_path *path, token_stream& is);
 | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 | 		bob_dom_cut * loadCUT(token_stream& is, bob_dom_obinaryfilestream *os, bool bDirectOutput);
 | 
        
           |  |  | 21 | 		bool loadTCBInfo(token_stream& is, bob_dom_frame::tcb_info *info);
 | 
        
           |  |  | 22 |   | 
        
           |  |  | 23 | 	public:
 | 
        
           |  |  | 24 | 		bod_cut_parser(const Settings *settings) : bod_bob_parser(settings) {}
 | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | 		bob_dom_cut * loadCUT(token_stream& is);
 | 
        
           |  |  | 27 | 		bool compile(token_stream& is, bob_dom_obinaryfilestream& os);
 | 
        
           |  |  | 28 | };
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 | #endif // !defined(BOD_CUT_PARSER_INCLUDED)
 |