* 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

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

View File

@ -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

View File

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