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