|
Open Babel
3.0
|
#include <openbabel/data.h>
Public Member Functions | |
| OBGlobalDataBase () | |
| virtual | ~OBGlobalDataBase () |
| void | Init () |
| virtual size_t | GetSize () |
| void | SetReadDirectory (char *dir) |
| void | SetEnvironmentVariable (char *var) |
| virtual void | ParseLine (const char *) |
Protected Attributes | |
| bool | _init |
| const char * | _dataptr |
| std::string | _filename |
| std::string | _dir |
| std::string | _subdir |
| std::string | _envvar |
Base data table class, handles reading data files.
Base data table class–reads ASCII data files in various formats
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
| void Init | ( | ) |
Read in the data file, falling back as needed.
Referenced by OBRotorList::Init().
|
inlinevirtual |
Reimplemented in OBResidueData, OBTypeTable, OBAtomicHeatOfFormationTable, OBPhModel, OBRotorRules, OBRingTyper, OBAtomTyper, and OBBondTyper.
|
inline |
Set the directory before calling Init()
|
inline |
Set the environment variable to use before calling Init()
|
inlinevirtual |
Specified by particular table classes (parses an individual data line)
Reimplemented in OBResidueData, OBTypeTable, OBAtomicHeatOfFormationTable, OBPhModel, OBRotorRules, OBRingTyper, OBAtomTyper, and OBBondTyper.
|
protected |
Whether the data been read already.
|
protected |
Default data table if file is unreadable.
|
protected |
File to search for.
|
protected |
Data directory for file if _envvar fails.
|
protected |
Subdirectory (if using environment variable)
|
protected |
Environment variable to check first.
1.8.13