IMP  2.0.0
The Integrative Modeling Platform
pdb_check.cpp
1 /**
2  * Copyright 2007-2013 IMP Inventors. All rights reserved.
3  */
4 #include <IMP/atom/pdb.h>
5 #include <IMP/base/flags.h>
7 #include <IMP/exception.h>
8 
9 int main(int argc, char **argv) {
10  try {
11  std::vector<std::string> argcs
12  = IMP::base::setup_from_argv(argc, argv,
13  "Print warnings about pdb file",
14  "input.pdb",
15  -1);
16 
18  for (unsigned int i=0; i< argcs.size(); ++i) {
19  IMP_NEW(IMP::Model, m, ());
20  m->set_log_level(IMP::SILENT);
21  IMP::atom::Hierarchies inhs;
23  m));
24  for (unsigned int i=0; i< inhs.size(); ++i) {
25  IMP::atom::add_bonds(inhs[i]);
26  }
27  }
28  return 0;
29  } catch (const IMP::Exception &e) {
30  std::cerr << "Error: " << e.what() << std::endl;
31  return 1;
32  } catch (const std::exception &e) {
33  std::cerr << "Error: " << e.what() << std::endl;
34  }
35 }