Subversion Repositories spk

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
/*
2
  defines bob_parser - class that can parse any bod data and create 
3
  bob_dom_document object
4
*/
5
 
6
#ifndef BOD_PARSER_INCLUDED
7
#define BOD_PARSER_INCLUDED
8
 
9
#include "bod_bob_parser.h"
10
#include "bob_dom.h"
11
#include "settings.h"
114 cycrow 12
#include "bob_stream.h"
1 cycrow 13
 
14
class bod_parser : public bod_parser_base
15
{
16
	private:
17
		const Settings *m_settings;
18
 
19
	private:
20
		void error(iterator& it);
21
 
22
	public:
23
		enum fileType
24
		{
25
			bobFile,
26
			cutFile
27
		};
28
 
29
		bod_parser(const Settings *settings) { m_settings=settings; }
30
 
31
		bob_dom_document * parseBuffer(char *pszBuffer, size_t size, fileType type);
32
 
114 cycrow 33
		bool compile(char *pszBuffer, size_t size, fileType type, obinaryfilestream& os);
1 cycrow 34
};
35
 
36
#endif // !defined(BOD_PARSER_INCLUDED)