* All tools:

- Change: Correction to suppress all g++ warnings. Except thoses comming
        from bad Python system includes...
This commit is contained in:
Jean-Paul Chaput 2010-05-17 14:40:32 +00:00
parent 9ac035bb49
commit d25bea005d
3 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,8 @@
namespace IO { namespace IO {
class GdsElement { class GdsElement {
protected: protected:
inline GdsElement(int layer); inline GdsElement (int layer);
virtual ~GdsElement ();
public: public:
virtual bool write ( ofstream &file ) = 0; virtual bool write ( ofstream &file ) = 0;

View File

@ -5,6 +5,8 @@ using namespace std;
#include "GdsRectangle.h" #include "GdsRectangle.h"
namespace IO { namespace IO {
GdsElement::~GdsElement () { }
GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax) GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax)
: GdsElement(layer) : GdsElement(layer)
, _xmin(xmin) , _xmin(xmin)
@ -12,6 +14,8 @@ GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, dou
, _xmax(xmax) , _xmax(xmax)
, _ymax(ymax) {} , _ymax(ymax) {}
GdsRectangle::~GdsRectangle () { }
bool GdsRectangle::write(ofstream &file) { bool GdsRectangle::write(ofstream &file) {
file << "BOUNDARY;" << endl file << "BOUNDARY;" << endl
<< "LAYER " << _layer << ";" << endl << "LAYER " << _layer << ";" << endl

View File

@ -8,10 +8,9 @@
namespace IO { namespace IO {
class GdsRectangle : public GdsElement { class GdsRectangle : public GdsElement {
public: public:
GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax); GdsRectangle (int layer, double xmin, double ymin, double xmax, double ymax);
virtual ~GdsRectangle ();
virtual bool write ( ofstream &file ); virtual bool write ( ofstream &file );
private: private:
double _xmin; double _xmin;
double _ymin; double _ymin;