Skip to content
Snippets Groups Projects
Commit bca9cd36 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

mmcif writer: remove the requirement of IOProfile

IOProfile was never used in any of the functionalities in MMCifWriter
parent 529ccde9
Branches
Tags
No related merge requests found
......@@ -118,7 +118,7 @@ void export_mmcif_io()
.def("Write", &StarWriter::Write, arg("data_name"))
;
class_<MMCifWriter, boost::noncopyable, bases<StarWriter> >("MMCifWriter", init<const String&, const IOProfile&>())
class_<MMCifWriter, boost::noncopyable, bases<StarWriter> >("MMCifWriter", init<const String&>())
.def("SetStructure", &MMCifWriter::SetStructure, (arg("ent"), arg("mmcif_conform")=true))
;
......
......@@ -1400,9 +1400,8 @@ int MMCifWriterEntity::GetAsymIdx(const String& asym_id) const {
throw ost::io::IOException(err);
}
MMCifWriter::MMCifWriter(const String& filename, const IOProfile& profile):
MMCifWriter::MMCifWriter(const String& filename):
StarWriter(filename),
profile_(profile),
structure_set_(false) { }
void MMCifWriter::SetStructure(const ost::mol::EntityHandle& ent,
......
......@@ -69,14 +69,13 @@ struct MMCifWriterEntity {
class DLLEXPORT_OST_IO MMCifWriter : public StarWriter {
public:
MMCifWriter(const String& filename, const IOProfile& profile);
MMCifWriter(const String& filename);
virtual ~MMCifWriter() { }
void SetStructure(const ost::mol::EntityHandle& ent, bool mmcif_conform=true);
private:
IOProfile profile_;
std::vector<MMCifWriterEntity> entity_info_;
StarWriterLoopPtr atom_type_;
StarWriterLoopPtr atom_site_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment