This commit is contained in:
Greg Landrum
2013-05-17 05:15:17 +02:00
parent e29aa466db
commit 02fda45efe
2 changed files with 14 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id$
* $Id: Atom.i 2519 2013-05-17 03:01:18Z glandrum $
*
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
* All rights reserved.
@@ -58,7 +58,9 @@
#endif
%include <GraphMol/Atom.h>
%newobject RDKit::Atom::getProp;
/* For the time being, assume all properties will be strings */
%template(setProp) RDKit::Atom::setProp<std::string>;
%extend RDKit::Atom {
std::string getProp(const std::string key){
std::string res;

View File

@@ -1,5 +1,5 @@
/*
* $Id$
* $Id: Bond.i 2519 2013-05-17 03:01:18Z glandrum $
*
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
* All rights reserved.
@@ -49,7 +49,16 @@
%include <GraphMol/Bond.h>
/* For the time being, assume all properties will be strings */
%template(setProp) RDKit::Bond::setProp<std::string>;
%extend RDKit::Bond {
std::string getProp(const std::string key){
std::string res;
($self)->getProp(key, res);
return res;
}
/* Methods from MolFileStereoChem.h */
Bond::BondDir DetermineBondWedgeState(const RDKit::INT_MAP_INT &wedgeBonds,
const RDKit::Conformer *conf) {