23 #ifndef OB_GROUPCONTRIB_H 24 #define OB_GROUPCONTRIB_H 53 OBGroupContrib(
const char* ID,
const char* filename,
const char* descr)
55 :
OBDescriptor(ID,
false), _filename(filename), _descr(descr), _debug(
false){}
57 virtual const char* Description();
61 return new OBGroupContrib(textlines[1].c_str(),textlines[2].c_str(),textlines[3].c_str());
65 virtual double Predict(
OBBase* pOb, std::string* param=NULL);
70 const char* _filename;
72 std::vector<std::pair<OBSmartsPattern*, double> > _contribsHeavy;
73 std::vector<std::pair<OBSmartsPattern*, double> > _contribsHydrogen;
89 #endif // OB_GROUPCONTRIB_H Handle group contribution algorithms.
Definition: groupcontrib.h:44
Base class for molecular descriptors.
virtual OBGroupContrib * MakeInstance(const std::vector< std::string > &textlines)
Definition: groupcontrib.h:59
#define OBDESC
Definition: groupcontrib.h:32
Base class for molecular properties, descriptors or features.
Definition: descriptor.h:34
Base Class.
Definition: base.h:239
Global namespace for all Open Babel code.
Definition: alias.h:22