23 #include <openbabel/babelconfig.h> 86 std::string _element,_method,_desc,_unit;
104 std::string method,std::string desc,
105 double T,
double value,
int multiplicity,
114 _multiplicity = multiplicity;
127 std::string
Desc() {
return _desc; }
129 double T() {
return _T; }
135 std::string
Unit() {
return _unit; }
151 std::vector<OBAtomHOF> _atomhof;
165 void ParseLine(
const char*);
178 int GetHeatOfFormation(std::string elem,
181 double T,
double *dhof0,
182 double *dhofT,
double *S0T);
189 unsigned int _ncols,_nrows;
191 std::vector<std::string> _colnames;
192 std::vector<std::vector<std::string> > _table;
199 void ParseLine(
const char*);
205 bool SetFromType(
const char*);
207 bool SetToType(
const char*);
209 bool Translate(
char *to,
const char *from);
212 bool Translate(std::string &to,
const std::string &from);
215 std::string Translate(
const std::string &from);
218 std::string GetFromType();
220 std::string GetToType();
235 std::vector<std::string> _resname;
236 std::vector<std::vector<std::string> > _resatoms;
237 std::vector<std::vector<std::pair<std::string,int> > > _resbonds;
240 std::vector<std::string> _vatmtmp;
241 std::vector<std::pair<std::string,int> > _vtmp;
245 void ParseLine(
const char*);
253 bool SetResName(
const std::string &);
256 int LookupBO(
const std::string &);
259 int LookupBO(
const std::string &,
const std::string&);
263 bool LookupType(
const std::string &,std::string&,
int&);
266 bool AssignBonds(
OBMol &);
Definition: residue.h:336
size_t GetSize()
Definition: data.h:248
void SetEnvironmentVariable(char *var)
Set the environment variable to use before calling Init()
Definition: data.h:70
std::string Method()
Return the method used for the measurement/calculation.
Definition: data.h:125
Molecule Class.
Definition: mol.h:118
int Charge()
Return the formal charge.
Definition: data.h:123
~OBAtomHOF()
Destructor.
Definition: data.h:119
OBGlobalDataBase()
Constructor.
Definition: data.h:60
virtual void ParseLine(const char *)
Specified by particular table classes (parses an individual data line)
Definition: data.h:72
void SetReadDirectory(char *dir)
Set the directory before calling Init()
Definition: data.h:68
std::string _subdir
Subdirectory (if using environment variable)
Definition: data.h:55
std::string _filename
File to search for.
Definition: data.h:53
Atom Type Translation Table.
Definition: data.h:186
OBTypeTable ttab
Definition: data.h:225
std::string Unit()
Return the (energy) unit.
Definition: data.h:135
size_t GetSize()
Definition: data.h:202
virtual ~OBGlobalDataBase()
Destructor.
Definition: data.h:62
~OBTypeTable()
Definition: data.h:197
bool _init
Whether the data been read already.
Definition: data.h:51
const char * _dataptr
Default data table if file is unreadable.
Definition: data.h:52
std::string Desc()
Return specification of the measurement/calculation type.
Definition: data.h:127
Table of common biomolecule residues (for PDB or other files).
Definition: data.h:232
std::string _dir
Data directory for file if _envvar fails.
Definition: data.h:54
std::string _envvar
Environment variable to check first.
Definition: data.h:56
double T()
Return the temperature.
Definition: data.h:129
virtual size_t GetSize()
Definition: data.h:66
helper class for OBAtomicHeatOfFormationTable
Definition: data.h:83
int Multiplicity()
Return the multiplicity.
Definition: data.h:133
OBResidueData resdat
Global OBResidueData biomolecule residue database.
Definition: data.h:270
double Value()
Return the (energy) value.
Definition: data.h:131
OBAtomHOF(std::string element, int charge, std::string method, std::string desc, double T, double value, int multiplicity, std::string unit)
Initialize Heat of Formation for atom.
Definition: data.h:103
Base data table class, handles reading data files.
Definition: data.h:48
std::string Element()
Return the chemical element.
Definition: data.h:121
Global namespace for all Open Babel code.
Definition: alias.h:22