Bitstream Interpretation Library (BIL)
0.1
|
Parser for XDLRC text file format. More...
#include <xdlrc/parser/XDLRCParser.hpp>
Public Member Functions | |
XDLRCParser () | |
Constructs a new XDLRCParser instance. | |
XDLRCParser::~XDLRCParser () | |
Destructs a XDLRCParser instance. | |
void | parseFirstPass (std::istream &inputStream, Device &device) |
Parses the XDLRC data out of the stream. | |
void | parseSecondPass () |
Parses the XDLRC data out of the stream. |
Parser for XDLRC text file format.
This parser is able to read in XDLRC text files and store their data into an Device structure. The parsing is done in two passes: The first pass reads most of the data (tiles and primitive definitions), the second pass only finishes work (connections between wires and primitive sites). While it checks syntax completely, it does not check the data semantics. Though some checking is done (necessary because of conversion to Device model), the obtained data should be checked later thoroughly.
Definition at line 34 of file XDLRCParser.hpp.
XDLRCParser::XDLRCParser | ( | ) |
Constructs a new XDLRCParser instance.
Definition at line 13 of file XDLRCParser.cpp.
bil::XDLRCParser::XDLRCParser::~XDLRCParser | ( | ) |
Destructs a XDLRCParser instance.
void XDLRCParser::parseFirstPass | ( | std::istream & | inputStream, |
Device & | device | ||
) |
Parses the XDLRC data out of the stream.
The does the first parsing pass reading most of the XDLRC data (all data objects inside the Device object gets filled except the WireConnections and the PrimitiveSiteTypes).
inputStream | Stream to read from. |
device | Device instance to refill with data. |
. |
Definition at line 30 of file XDLRCParser.cpp.
void XDLRCParser::parseSecondPass | ( | ) |
Parses the XDLRC data out of the stream.
The does the second parsing pass filling the WireConnections and the PrimitiveSiteTypes. It uses the input stream and Device instance given in first call.
. |
Definition at line 38 of file XDLRCParser.cpp.