diff --git a/vlsisapd/agds/GdsElement.h b/vlsisapd/agds/GdsElement.h index fb355ef8..38253bd8 100644 --- a/vlsisapd/agds/GdsElement.h +++ b/vlsisapd/agds/GdsElement.h @@ -4,7 +4,8 @@ namespace IO { class GdsElement { protected: - inline GdsElement(int layer); + inline GdsElement (int layer); + virtual ~GdsElement (); public: virtual bool write ( ofstream &file ) = 0; diff --git a/vlsisapd/agds/GdsRectangle.cpp b/vlsisapd/agds/GdsRectangle.cpp index 4b82a3ee..49478889 100644 --- a/vlsisapd/agds/GdsRectangle.cpp +++ b/vlsisapd/agds/GdsRectangle.cpp @@ -5,6 +5,8 @@ using namespace std; #include "GdsRectangle.h" namespace IO { +GdsElement::~GdsElement () { } + GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax) : GdsElement(layer) , _xmin(xmin) @@ -12,6 +14,8 @@ GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, dou , _xmax(xmax) , _ymax(ymax) {} +GdsRectangle::~GdsRectangle () { } + bool GdsRectangle::write(ofstream &file) { file << "BOUNDARY;" << endl << "LAYER " << _layer << ";" << endl diff --git a/vlsisapd/agds/GdsRectangle.h b/vlsisapd/agds/GdsRectangle.h index 2c9a190e..f2563128 100644 --- a/vlsisapd/agds/GdsRectangle.h +++ b/vlsisapd/agds/GdsRectangle.h @@ -8,10 +8,9 @@ namespace IO { class GdsRectangle : public GdsElement { public: - GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax); - - virtual bool write ( ofstream &file ); - + GdsRectangle (int layer, double xmin, double ymin, double xmax, double ymax); + virtual ~GdsRectangle (); + virtual bool write ( ofstream &file ); private: double _xmin; double _ymin;