From 5ee781a93fba88c4e79ab868e10145b46001dcc3 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 17 Jun 2017 16:53:01 +0200 Subject: [PATCH] Reactivated some from_xy methods for backward compatibility --- src/db/gsiDeclDbBox.cc | 4 ++-- src/db/gsiDeclDbEdge.cc | 4 ++-- src/db/gsiDeclDbPath.cc | 4 ++-- src/db/gsiDeclDbPoint.cc | 4 ++-- src/db/gsiDeclDbPolygon.cc | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/db/gsiDeclDbBox.cc b/src/db/gsiDeclDbBox.cc index aa7c9844e..5b8694f84 100644 --- a/src/db/gsiDeclDbBox.cc +++ b/src/db/gsiDeclDbBox.cc @@ -462,7 +462,7 @@ static db::DBox box_to_dbox (const db::Box *b, double dbu) } Class decl_Box ("Box", - constructor ("new", &box_from_dbox, gsi::arg ("dbox"), + constructor ("new|#from_dbox", &box_from_dbox, gsi::arg ("dbox"), "@brief Creates an integer coordinate box from a floating-point coordinate box\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dbox'." @@ -517,7 +517,7 @@ static db::Box dbox_to_box (const db::DBox *b, double dbu) } Class decl_DBox ("DBox", - constructor ("new", &dbox_from_ibox, gsi::arg ("box"), + constructor ("new|#from_ibox", &dbox_from_ibox, gsi::arg ("box"), "@brief Creates a floating-point coordinate box from an integer coordinate box\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ibox'." diff --git a/src/db/gsiDeclDbEdge.cc b/src/db/gsiDeclDbEdge.cc index 4481aa81a..232c3e1b8 100644 --- a/src/db/gsiDeclDbEdge.cc +++ b/src/db/gsiDeclDbEdge.cc @@ -586,7 +586,7 @@ static db::DEdge edge_to_dedge (const db::Edge *e, double dbu) } Class decl_Edge ("Edge", - constructor ("new", &edge_from_dedge, gsi::arg ("dedge"), + constructor ("new|#from_dedge", &edge_from_dedge, gsi::arg ("dedge"), "@brief Creates an integer coordinate edge from a floating-point coordinate edge\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dedge'." @@ -635,7 +635,7 @@ static db::Edge dedge_to_edge (const db::DEdge *e, double dbu) } Class decl_DEdge ("DEdge", - constructor ("new", &dedge_from_iedge, gsi::arg ("edge"), + constructor ("new|#from_iedge", &dedge_from_iedge, gsi::arg ("edge"), "@brief Creates a floating-point coordinate edge from an integer coordinate edge\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_iedge'." diff --git a/src/db/gsiDeclDbPath.cc b/src/db/gsiDeclDbPath.cc index 0ec4381db..f9fcef1c9 100644 --- a/src/db/gsiDeclDbPath.cc +++ b/src/db/gsiDeclDbPath.cc @@ -342,7 +342,7 @@ static db::Path path_round_corners (const db::Path *p, double radius, int npoint } Class decl_Path ("Path", - constructor ("new", &path_from_dpath, gsi::arg ("dpath"), + constructor ("new|#from_dpath", &path_from_dpath, gsi::arg ("dpath"), "@brief Creates an integer coordinate path from a floating-point coordinate path\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpath'." @@ -408,7 +408,7 @@ static db::DPath dpath_round_corners (const db::DPath *p, double radius, int npo } Class decl_DPath ("DPath", - constructor ("new", &dpath_from_ipath, gsi::arg ("path"), + constructor ("new|#from_ipath", &dpath_from_ipath, gsi::arg ("path"), "@brief Creates a floating-point coordinate path from an integer coordinate path\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipath'." diff --git a/src/db/gsiDeclDbPoint.cc b/src/db/gsiDeclDbPoint.cc index d7770085b..b42ab6a13 100644 --- a/src/db/gsiDeclDbPoint.cc +++ b/src/db/gsiDeclDbPoint.cc @@ -216,7 +216,7 @@ static db::Point dpoint_to_point (const db::DPoint *p, double dbu) } Class decl_DPoint ("DPoint", - constructor ("new", &dpoint_from_ipoint, gsi::arg ("point"), + constructor ("new|#from_ipoint", &dpoint_from_ipoint, gsi::arg ("point"), "@brief Creates a floating-point coordinate point from an integer coordinate point\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipoint'." @@ -252,7 +252,7 @@ static db::DPoint point_to_dpoint (const db::Point *p, double dbu) } Class decl_Point ("Point", - constructor ("new", &point_from_dpoint, gsi::arg ("dpoint"), + constructor ("new|#from_dpoint", &point_from_dpoint, gsi::arg ("dpoint"), "@brief Creates an integer coordinate point from a floating-point coordinate point\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpoint'." diff --git a/src/db/gsiDeclDbPolygon.cc b/src/db/gsiDeclDbPolygon.cc index 7aa0123e5..5701aef2e 100644 --- a/src/db/gsiDeclDbPolygon.cc +++ b/src/db/gsiDeclDbPolygon.cc @@ -524,7 +524,7 @@ static db::DSimplePolygon spolygon_to_dspolygon (const db::SimplePolygon *p, dou } Class decl_SimplePolygon ("SimplePolygon", - constructor ("new", &spolygon_from_dspolygon, gsi::arg ("dpolygon"), + constructor ("new|#from_dpoly", &spolygon_from_dspolygon, gsi::arg ("dpolygon"), "@brief Creates an integer coordinate polygon from a floating-point coordinate polygon\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpoly'." @@ -640,7 +640,7 @@ static db::SimplePolygon dspolygon_to_spolygon (const db::DSimplePolygon *p, dou } Class decl_DSimplePolygon ("DSimplePolygon", - constructor ("new", &dspolygon_from_ispolygon, gsi::arg ("polygon"), + constructor ("new|#from_ipoly", &dspolygon_from_ispolygon, gsi::arg ("polygon"), "@brief Creates a floating-point coordinate polygon from an integer coordinate polygon" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipoly'." @@ -1538,7 +1538,7 @@ static gsi::Methods make_td_constants () } Class decl_Polygon ("Polygon", - constructor ("new", &polygon_from_dpolygon, gsi::arg ("dpolygon"), + constructor ("new|#from_dpoly", &polygon_from_dpolygon, gsi::arg ("dpolygon"), "@brief Creates an integer coordinate polygon from a floating-point coordinate polygon\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_dpolygon'." @@ -1749,7 +1749,7 @@ static db::Polygon dpolygon_to_polygon (const db::DPolygon *p, double dbu) } Class decl_DPolygon ("DPolygon", - constructor ("new", &dpolygon_from_ipolygon, gsi::arg ("polygon"), + constructor ("new|#from_ipoly", &dpolygon_from_ipolygon, gsi::arg ("polygon"), "@brief Creates a floating-point coordinate polygon from an integer coordinate polygon\n" "\n" "This constructor has been introduced in version 0.25 and replaces the previous static method 'from_ipolygon'."