My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
CurlReader.h
Go to the documentation of this file.
1 // $Id: CurlReader.h,v 1.1 2009/08/17 23:36:37 eml Exp $
2 
3 #ifndef GCP_UTIL_CURLREADER_H
4 #define GCP_UTIL_CURLREADER_H
5 
15 #include <sstream>
16 
17 namespace gcp {
18  namespace util {
19 
20  class CurlReader {
21  public:
22 
26  CurlReader();
27 
31  virtual ~CurlReader();
32 
33  std::string getUrl(std::string url);
34 
35  protected:
36 
37  enum {
38  OPTION_FALSE = 0,
39  OPTION_TRUE = 1
40  };
41 
42  // A stream containing the last read information returned from
43  // the URL fetch
44 
45  std::ostringstream lastRead_;
46 
47  // A function that will be called to handle data from a call to
48  // 'perform'
49 
50  static size_t handleData(void* buffer, size_t size, size_t nmemb, void* userp);
51 
52  }; // End class CurlReader
53 
54  } // End namespace util
55 } // End namespace gcp
56 
57 
58 
59 #endif // End #ifndef GCP_UTIL_CURLREADER_H
Definition: CurlReader.h:20
virtual ~CurlReader()
Definition: CurlReader.cc:17
Definition: tVideoCapabilitiesEml.cc:67
CurlReader()
Definition: CurlReader.cc:12