26 cout <<
"BookshelfDataBase::" << __func__ << endl;
33 cout << __func__ <<
" => " << nn <<
", " << nt << endl;
38 cout << __func__ <<
" => " << n << endl;
43 cout << __func__ <<
" => " << n << endl;
48 cout << __func__ <<
" => " << n << endl;
55 cout << __func__ <<
" => " << name <<
", " << w <<
", " << h << endl;
62 cout << __func__ <<
" => " << name <<
", " << w <<
", " << h << endl;
81 cout << __func__ <<
" => " << name <<
", " << x <<
", " << y <<
", " << orient <<
", " << status <<
", plFlag = " << plFlag << endl;
86 cout << __func__ <<
" => " << name << endl;
91 cout << __func__ << endl;
96 void test1(
string const& filename)
98 cout <<
"////////////// test1 ////////////////" << endl;
106 cout <<
"////////////// test2 ////////////////" << endl;
119 int main(
int argc,
char** argv)
128 cout <<
"at least 1 argument is required" << endl;
Driver for Bookshelf parser.
bool parse_file(const string &filename)
virtual void print(ostream &ss) const
virtual void add_bookshelf_node(string &name, int w, int h)
Custom class that inheritates BookshelfParser::BookshelfDataBase with all the required callbacks defi...
virtual void set_bookshelf_node_position(string const &name, double x, double y, string const &orient, string const &status, bool plFlag)
Base class for bookshelf database. Only pure virtual functions are defined. User needs to inheritate ...
virtual void resize_bookshelf_pin(int n)
BookshelfDataBase()
constructor
virtual void resize_bookshelf_node_terminals(int nn, int nt)
net to describe interconnection of netlist
virtual void add_bookshelf_row(BookshelfParser::Row const &row)
virtual void add_bookshelf_net(BookshelfParser::Net const &net)
virtual void resize_bookshelf_net(int n)
virtual void resize_bookshelf_row(int n)
void test2(string const &filename)
test 2: use class wrapper BookshelfParser::Driver
void test1(string const &filename)
test 1: use function wrapper BookshelfParser::read
bool read(BookshelfDataBase &db, const string &auxFile)
API for BookshelfParser. Read .aux file and parse all other files.
virtual void set_bookshelf_design(string &name)
virtual void print(ostream &ss) const
virtual void add_bookshelf_terminal(string &name, int w, int h)
int main(int argc, char **argv)
main function
virtual void bookshelf_end()
end of bookshelf