Forgot to commit these modifications

This commit is contained in:
Damien Dupuis 2010-02-25 15:11:37 +00:00
parent 943f28c8fd
commit d3ee85fa2e
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@ using namespace std;
namespace IO {
CifCircuit::CifCircuit(string name) : _name(name) {}
CifCircuit::CifCircuit(string name, string unit, double scale) : _name(name), _unit(unit), _scale(scale) {}
bool CifCircuit::addPolygon(CifPolygon* polygon) {
@ -33,6 +33,7 @@ bool CifCircuit::write(string filename) {
file.open(filename.c_str(), ios::out);
// Header
file << "(CIF file written on " << date << " by IO_CIF_DRIVER);" << endl
<< "(Units: " << _unit << " - UU/DB Scale: " << _scale << ");" << endl
<< "DS 1 1 1;" << endl
<< "9 " << _name << ";" << endl;

View File

@ -7,13 +7,15 @@ namespace IO {
class CifPolygon;
class CifCircuit {
public:
CifCircuit(string);
CifCircuit(string name, string unit, double scale);
bool addPolygon ( CifPolygon* );
bool write ( string );
private:
string _name;
string _unit;
double _scale;
std::vector<CifPolygon*> _polygons;
};