* All tools:
- Change: Correction to suppress all g++ warnings. Except thoses comming from bad Python system includes...
This commit is contained in:
parent
9ac035bb49
commit
d25bea005d
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue