Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Network.h

Go to the documentation of this file.
00001 #ifndef NETWORK_INCLUDED
00002 #define NETWORK_INCLUDED
00003 
00004 #include <iostream>
00005 #include <curl/curl.h>
00006 
00011 class Network{
00012 private:
00013         std::string _fileName;
00014         CURL *_curl;
00015         CURLcode _res;
00016         
00017 public:
00018         //
00019         // Getters:
00020         //
00021         std::string getNetworkFile(const char*);
00022         std::string getFileName() {return _fileName;}
00023         
00024 };
00025 
00026 static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream){
00027         int written = fwrite(ptr, size, nmemb, (FILE *)stream);
00028         return written;
00029 }
00030 
00031 #endif

Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4