patty Class Reference
Programmable Atom Typer. More...
#include <openbabel/patty.h>
Public Member Functions | |
| patty () | |
| patty (char *s) | |
| patty (const std::string &s) | |
| ~patty () | |
| void | debug_on () |
| void | debug_off () |
| void | read_rules (const std::string &infile) |
| void | assign_rules (std::vector< std::string > &rules) |
| void | assign_types (OBMol &mol, std::vector< std::string > &atm_typ) |
| void | assign_types (OBMol &mol, std::vector< int > &atm_typ) |
| int | type_to_int (const std::string &type, bool failOnUndefined=false) |
| int | Istype (const std::string &type) |
Detailed Description
Programmable Atom Typer.
- Deprecated:
- This code is currently not used by the Open Babel library. Instead, OBAtomTyper and OBAromaticTyper are used. Unless there is interest in retaining this independent class, it will be removed in the future.
O=C hbacceptor
OBMol mol;
string rulefile = "rules.txt";
patty p;
p.read_rules(p);
vector<string> type;
p.assign_types(mol,type);
for (int i = 1;i <= mol.NumAtoms();++i)
cout << "atom number " << i << " was given a type " << type[i] << endl;
Constructor & Destructor Documentation
| patty | ( | ) | [inline] |
| patty | ( | char * | s | ) | [inline] |
| patty | ( | const std::string & | s | ) | [inline] |
| ~patty | ( | ) | [inline] |
Member Function Documentation
| void debug_on | ( | ) | [inline] |
| void debug_off | ( | ) | [inline] |
| void read_rules | ( | const std::string & | infile | ) |
| void assign_rules | ( | std::vector< std::string > & | rules | ) |
| void assign_types | ( | OBMol & | mol, | |
| std::vector< std::string > & | atm_typ | |||
| ) |
| void assign_types | ( | OBMol & | mol, | |
| std::vector< int > & | atm_typ | |||
| ) |
| int type_to_int | ( | const std::string & | type, | |
| bool | failOnUndefined = false | |||
| ) |
Referenced by patty::assign_types().
| int Istype | ( | const std::string & | type | ) |
return atom type index, 0 otherwise
return null if the type does not exist, the type position otherwise the first position start at 1
The documentation for this class was generated from the following files:

