BALL  1.5.0
pubchemDownloader.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_FORMAT_PUBCHEMDOWNLOADER_H
6 #define BALL_FORMAT_PUBCHEMDOWNLOADER_H
7 
8 #ifndef BALL_DATATYPE_STRING_H
9 # include <BALL/DATATYPE/string.h>
10 #endif
11 
12 namespace BALL
13 {
21  {
22  public:
27 
37  bool downloadSDFByName(const String& query, const String& filename);
38 
48  bool downloadSDFByCID(int cid, const String& filename);
49 
50  private:
52  const String pubchem_rest_url_;
53 
63  bool downloadSDF_(const String& query, const String& type, const String& filename);
64  };
65 }
66 
67 #endif // BALL_FORMAT_PUBCHEMDOWNLOADER_H
BALL::PubChemDownloader
Downloads PubChem entries.
Definition: pubchemDownloader.h:20
BALL::String
Definition: string.h:56
BALL
Definition: constants.h:12
string.h
BALL_EXPORT
#define BALL_EXPORT
Definition: COMMON/global.h:50