Forgot to commit these modifications
This commit is contained in:
parent
943f28c8fd
commit
d3ee85fa2e
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue