CMS 3D CMS Logo

SMCurlInterface.h

Go to the documentation of this file.
00001 #ifndef SMCurlInterface_H
00002 #define SMCurlInterface_H
00003 
00011 #include <string>
00012 #include <iostream>
00013 
00014 namespace stor
00015 {
00016   struct ReadData
00017   {
00018     std::string d_;
00019   };  
00020 
00021   size_t func(void* buf,size_t size, size_t nmemb, void* userp);
00022 
00023   template <class Han, class Opt, class Par>
00024   int setopt(Han han,Opt opt,Par par)
00025   {
00026     if(curl_easy_setopt(han,opt,par)!=0)
00027       {
00028         std::cerr << "could not stor::setopt " << opt << std::endl;
00029         abort();
00030       }
00031     return 0;
00032   }
00033 }
00034 #endif

Generated on Tue Jun 9 17:34:55 2009 for CMSSW by  doxygen 1.5.4