Coot Scripting Interface  7000
sdf-interface.hh
Go to the documentation of this file.
1 /* src/sdf-interface.hh
2  *
3  * Copyright 2012 by The University of Oxford
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or (at
8  * your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301, USA
19  */
20 
25 // 20140226: now we change things so that the interface functions always get generated,
26 // and what the function does depends on MAKE_ENHANCED_LIGAND_TOOLS
27 //
28 // #ifdef MAKE_ENHANCED_LIGAND_TOOLS
29 //
30 // was it OK or not? (i.e. did we not catch an exception)
31 bool residue_to_sdf_file(int imol, const char *chain_id, int resno, const char *ins_code,
32  const char *sdf_file_name, bool kekulize = true);
33 bool residue_to_mdl_file_for_mogul(int imol, const char *chain_id,
34  int resno, const char *ins_code,
35  const char *mdl_file_name);
36 // rdkit chemical features.
37 bool show_feats(int imol, const char *chain_id, int resno, const char *ins_code);
38 
39 // This is not an sdf function, perhaps it should be somewhere else - but
40 // if in rdkit-interface.hh, it would be a singleton.
41 //
42 
51 int import_rdkit_mol_from_smiles(const std::string &smiles, const std::string &comp_id);
52 
53 // #endif
54 
int import_rdkit_mol_from_smiles(const std::string &smiles, const std::string &comp_id)
import a molecule from a smiles string