Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
xdlrc
parser
XDLRCParser.cpp
Go to the documentation of this file.
1
6
#include <
util/StreamTokenizer.hpp
>
7
#include <
xdlrc/parser/XDLRCParser.hpp
>
8
#include <
xdlrc/parser/XDLRCParserImp.hpp
>
9
10
using namespace
bil;
11
12
13
XDLRCParser::XDLRCParser
():
14
m_tokenizer(0),
15
m_parserImp(0)
16
{
17
m_parserImp =
new
xdlrcparser_detail::XDLRCParserImp
();
18
}
19
20
21
XDLRCParser::~XDLRCParser()
22
{
23
delete
m_parserImp;
24
m_parserImp = 0;
25
delete
m_tokenizer;
26
m_tokenizer = 0;
27
}
28
29
30
void
XDLRCParser::parseFirstPass
(std::istream& inputStream,
Device
& device)
31
{
32
if
(0 != m_tokenizer) m_tokenizer->
inputStream
(inputStream);
33
else
m_tokenizer =
new
StreamTokenizer
(inputStream);
34
m_parserImp->
parseFirstPass
(*m_tokenizer, device);
35
}
36
37
38
void
XDLRCParser::parseSecondPass
()
39
{
40
if
(0 != m_tokenizer) m_tokenizer->
reset
();
41
m_parserImp->
parseSecondPass
();
42
}
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1