16 int main(
int argc,
char** argv)
19 if (argc > 2 && argc <= 4)
25 for (std::vector<GdsParser::GdsDB::GdsCell>::const_iterator it = db.
cells().begin(); it != db.
cells().end(); ++it)
26 std::cout <<
"cell: " << it->name() << std::endl;
32 std::cout <<
"4 arguments to test flatten: input gds, output gds, flat output gds, flat cell name" << std::endl;
46 else std::cout <<
"at least 4 arguments are required: input gds, output gds, flat output gds, flat cell name" << std::endl;
header to include PrintMsg.h and AssertMsg.h
Wrapper to GDSII read and write with GDSII database GdsParser::GdsDB::GdsDB.
int main(int argc, char **argv)
main function
GdsCell extractCell(std::string const &cellName) const
extract a cell into a new cell with flatten hierarchies
GdsCell & addCell(std::string const &name="")
add a cell and return the reference to the new cell
read GDSII file with GDSII database GdsParser::GdsDB::GdsDB
std::vector< GdsCell > const & cells() const
#define limboAssert(condition)
custom assertion without message
write GDSII file with GDSII database GdsParser::GdsDB::GdsDB