#include #include #include using namespace std; #include "CifPolygon.h" namespace vlsisapd { CifPolygon::CifPolygon(long layer) : _layer(layer) {} void CifPolygon::addPoint(long x, long y) { _points.push_back(pair(x,y)); } void CifPolygon::write(ofstream& file) { file << "L " << _layer << "; P"; // For each point : write point. for ( vector >::iterator it = _points.begin() ; it < _points.end() ; it++ ) { file << " " << (*it).first << "," << (*it).second; } file << ";" << endl; } } // namespace