BALL
1.4.79
|
Downloads PubChem entries. More...
#include <BALL/FORMAT/pubchemDownloader.h>
Public Member Functions | |
PubChemDownloader () | |
bool | downloadSDFByName (const String &query, const String &filename) |
bool | downloadSDFByCID (int cid, const String &filename) |
Downloads PubChem entries.
This class provides a simplistic, blocking interface to the PubChem REST query interface. It downloads the obtained records in SDF format and
Definition at line 20 of file pubchemDownloader.h.
BALL::PubChemDownloader::PubChemDownloader | ( | ) |
Default constructor
Download an SD file corresponding to the Pubchem record identified by Pubchem CID
cid | The CID of the substance that should be received. |
filename | The path to the file into which the results should be saved. |
Download an SD file corresponding to the Pubchem record identified by name.
query | The name of the substance that should be received. |
filename | The path to the file into which the results should be saved. |