31 mDesignName(), mDesignPart(), mDesignDevice(), mDesignPackage(), mDesignSpeedGrade(),
32 mDesignXdlVersion(), mDesignPtr(), mCircuitPtr(), mModuleCount(0), mModuleName(
""),
33 mModuleAnchor(
""), mModuleInstance(
""), mModulePtr(), mReferenceInstantiation(
""),
34 mReferenceModule(
""), mReferenceInstance(
""), mReferenceModulePtr(),
35 mReferenceInstancePtr(), mInstanceReferencePtr(), mPortName(
""), mPortInstance(
""),
36 mPortPin(
""), mInstanceCount(0), mInstanceName(), mInstanceType(
""), mInstanceSite(
""),
38 mNetType(
eNetTypeNormal), mNetName(), mPinInstance(
""), mPinName(
""),
40 mPipDirection(static_cast<
EPipDirection>(0)), mRoutethroughConfigSetting(),
41 mRoutethroughConfigName(), mRoutethroughConfigValue(), mRoutethroughInstance(),
42 mRoutethroughSource(
""), mRoutethroughSink(
""), mConfigCount(0), mConfigSetting(),
43 mConfigName(), mConfigValue() {
59 this->
lexer = &scanner;
63 bool result = parser.
parse() == 0;
68 string pathname = path.string();
69 ifstream in(pathname.c_str());
70 if(!in.good())
return false;
71 return (*
this)(in, pathname);
75 istringstream iss(input);
76 return (*
this)(iss, name);
81 cerr << l <<
": " << m << std::endl;
86 cerr << m << std::endl;
void failure(void)
Signals a parsing failure by deasserting the success flag.
boost::uint32_t mInstanceCount
Number of instances read for the design.
bool mTraceScanning
Enable debug output in the flex scanner.
bool mSuccess
Flag signaling parsing success.
XdlImporter(void)
Construct the parser importer context.
boost::uint32_t mConfigCount
Number of configurations read for the design.
void error(const location &l, const string &m)
Error handling with associated line number.
Header for the XdlImporter class.
class torc::XdlScanner * lexer
Pointer to the current lexer instance.
boost::uint32_t mModuleCount
Number of modules read for the design.
bool mTraceParsing
Enable debug output in the bison parser.
void set_debug(bool b)
Enables or disables debugging output.
std::istream istream
Imported type name.
string mStreamName
Name of file or input stream for error messages.
boost::filesystem::path path
bool operator()(istream &in, const string &name="stream input")
Import XDL from an input stream.
Header for the XdlScanner class.
boost::uint32_t mNetCount
Number of nets read for the design.
EPipDirection
Enumeration of pip directionality.
void set_debug_level(debug_level_type l)
Set the current debugging level.