#include <iostream>
shared_ptr<OBMol> GetMol(const std::string &filename)
{
shared_ptr<OBMol> mol(
new OBMol);
std::cout << "Could not find input format for file " << filename << std::endl;
return mol;
}
std::ifstream ifs(filename.c_str());
if (!ifs) {
std::cout << "Could not open " << filename << " for reading." << std::endl;
return mol;
}
if (!conv.
Read(mol.get(), &ifs)) {
std::cout << "Could not read molecule from file " << filename << std::endl;
return mol;
}
return mol;
}
int main(int argc, char **argv)
{
if (argc < 2) {
std::cout << "Usage: " << argv[0] << " <filename>" << std::endl;
return 1;
}
shared_ptr<OBMol> mol = GetMol(argv[1]);
std::cout << "Setting up conformer searching..." << std::endl
<< " conformers: 30" << std::endl
<< " children: 5" << std::endl
<< " mutability: 5" << std::endl
<< " convergence: 25" << std::endl;
30,
5,
5,
25);
for (RotorKeys::iterator key = keys.begin(); key != keys.end(); ++key) {
for (unsigned int i = 1; i < key->size(); ++i)
std::cout << key->at(i) << " ";
std::cout << std::endl;
}
std::cout << mol->NumConformers() << std::endl;
for (unsigned int c = 0; c < mol->NumConformers(); ++c) {
mol->SetConformer(c);
conv.
Write(mol.get(), &std::cerr);
}
}