mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-05 22:04:27 +08:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// $Id$
|
|
//
|
|
// Copyright (C) 2008 Greg Landrum
|
|
// All Rights Reserved
|
|
//
|
|
|
|
#include <string>
|
|
#include <GraphMol/RDKitBase.h>
|
|
#include <GraphMol/SmilesParse/SmilesParse.h>
|
|
#include <GraphMol/SmilesParse/SmilesWrite.h>
|
|
#include <GraphMol/Substruct/SubstructMatch.h>
|
|
|
|
#include "RDKFuncs.h"
|
|
|
|
using namespace RDKit;
|
|
ROMol *MolFromSmiles(std::string smi) {
|
|
return SmilesToMol(smi);
|
|
};
|
|
ROMol *MolFromSmarts(std::string sma) {
|
|
return SmartsToMol(sma);
|
|
};
|
|
std::string MolToSmiles(ROMol *mol,bool doIsomericSmiles,
|
|
bool doKekule, int rootedAtAtom) {
|
|
return MolToSmiles(*mol,doIsomericSmiles,doKekule,rootedAtAtom);
|
|
};
|
|
bool HasSubstructMatch(ROMol &mol,ROMol &query,bool useChirality,
|
|
bool registerQuery){
|
|
MatchVectType mv;
|
|
return SubstructMatch(mol,query,mv,true,useChirality,registerQuery);
|
|
};
|
|
#if 0
|
|
MatchVectType GetSubstructMatches(ROMol &mol,ROMol &query,bool useChirality,
|
|
bool registerQuery){
|
|
MatchVectType mv;
|
|
return SubstructMatch(mol,query,mv,true,useChirality,registerQuery);
|
|
};
|
|
#endif
|
|
|
|
|
|
|
|
|