31#ifndef UTILS_ELEMENTSTABLE_HPP
32#define UTILS_ELEMENTSTABLE_HPP
141 RealType
GetMass(
int atomicnum);
185 std::vector<RealType>
GetRGB(
int atomicnum);
191 std::string
GetName(
int atomicnum);
199 std::vector<Element*> elements_;
This basic Element data-holding class was originally taken from the data.h file in OpenBabel.
Periodic Table of the Elements Using element data is a place holder when we lack information about a ...
const char * dataptr_
default data table if file is unreadable
std::string dir_
data directory for file if _envvar fails
bool init_
whether the data been read already
RealType CorrectedVdwRad(int atomicnum, int hyb=3)
RealType CorrectedBondRad(int atomicnum, int hyb=3)
RealType GetCovalentRad(int atomicnum)
~ElementsTable()
Destructor.
void SetReadDirectory(char *dir)
Set the directory before calling Init()
const char * GetSymbol(int atomicnum)
unsigned int GetNumberOfElements()
RealType GetAllredRochowElectroNeg(int atomicnum)
ElementsTable()
Constructor.
std::vector< RealType > GetRGB(int atomicnum)
std::string filename_
file to search for
int GetMaxBonds(int atomicnum)
void SetEnvironmentVariable(char *var)
Set the environment variable to use before calling Init()
RealType GetElectronAffinity(int atomicnum)
RealType GetIonization(int atomicnum)
std::string envvar_
environment variable to check first
RealType GetMass(int atomicnum)
std::string GetName(int atomicnum)
void Init()
Read in the data file.
void ParseLine(const char *line)
Specified by particular table classes (parses an individual data line)
std::string subdir_
subdirectory (if using environment variable)
RealType GetVdwRad(int atomicnum)
RealType GetElectroNeg(int atomicnum)
int GetAtomicNum(const char *str)
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.