BALL
1.4.2
|
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) |
Private Member Functions | |
bool | downloadSDF_ (const String &query, const String &type, const String &filename) |
Private Attributes | |
const String | pubchem_rest_url_ |
Holds the base URL for the pubchem rest interface. More... | |
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
|
private |
Helper that does the actual download work.
query | The query defining the record |
type | The type of the query |
filename | The path to the resulting SD File |
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. |
|
private |
Holds the base URL for the pubchem rest interface.
Definition at line 52 of file pubchemDownloader.h.