8 #ifndef GDFPARSER_DRIVER_H
9 #define GDFPARSER_DRIVER_H
25 using std::ostringstream;
57 const string& sname =
"stream input");
65 const string& sname =
"string stream");
80 void error(
const class location& l,
const string& m);
84 void error(
const string& m);
96 void cellInstanceCbk(std::string& name, std::string& cellType,
double x,
double y, int32_t orient);
97 void textCbk(
Text::TextTypeEnum textType, std::string
const& name, std::string& content);
98 void pathObjCbk(
PathObj::PathObjTypeEnum pathObjType, std::string
const& name, std::string& layer,
double width,
double xl,
double yl,
double xh,
double yh);
99 void pathCbk(std::string& name);
100 void netPortCbk(std::string& name, std::string& instName);
101 void netPortCbk(std::string& name);
102 void netCbk(std::string& name);
107 void cellCbk(std::string& name);
122 #endif // EXAMPLE_DRIVER_H
void error(const class location &l, const string &m)
bool parse_string(const string &input, const string &sname="string stream")
Cell m_cell
temporary storage of cell
void cellCbk(std::string &name)
Base class for def database. Only pure virtual functions are defined. User needs to inheritate this c...
bool parse_file(const string &filename)
the whole routing layout is describe by a cell
PathObjTypeEnum
type of path object
string streamname
stream name (file or input stream) used for error messages.
bool parse_stream(std::istream &in, const string &sname="stream input")
bool trace_scanning
enable debug output in the flex scanner
bool read(GdfDataBase &db, const string &filename)
API for GdfParser. Read GDF file and initialize database by calling user-defined callback functions...
bool trace_parsing
enable debug output in the bison parser