Bitstream Interpretation Library (BIL)  0.1
Public Member Functions
bil::XDLRCParser Class Reference

Parser for XDLRC text file format. More...

#include <xdlrc/parser/XDLRCParser.hpp>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

XDLRCParser::XDLRCParser ( )

Constructs a new XDLRCParser instance.

Definition at line 13 of file XDLRCParser.cpp.

bil::XDLRCParser::XDLRCParser::~XDLRCParser ( )

Destructs a XDLRCParser instance.


Member Function Documentation

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).

Parameters:
inputStreamStream to read from.
deviceDevice instance to refill with data.
Exceptions:
.

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.

Exceptions:
.

Definition at line 38 of file XDLRCParser.cpp.


The documentation for this class was generated from the following files: