libmoost
/home/mhx/git/github/libmoost/include/moost/murcl/options.hpp
Go to the documentation of this file.
00001 /* vim:set ts=3 sw=3 sts=3 et: */
00036 #ifndef FM_LAST_MOOST_MURCL_OPTIONS_HPP__
00037 #define FM_LAST_MOOST_MURCL_OPTIONS_HPP__
00038 
00039 #include <map>
00040 
00041 #include <curl/curl.h>
00042 
00043 #include "option_traits.hpp"
00044 
00045 namespace moost { namespace murcl {
00046 
00051 struct easyopt
00052 {
00053    typedef option_traits<curl_easyopt<CURLOPT_VERBOSE>, bool> verbose;
00054    typedef option_traits<curl_easyopt<CURLOPT_HEADER>, bool> header;
00055    typedef option_traits<curl_easyopt<CURLOPT_NOPROGRESS>, bool> noprogress;
00056    typedef option_traits<curl_easyopt<CURLOPT_NOSIGNAL>, bool> nosignal;
00057 
00058    typedef option_traits<curl_easyopt<CURLOPT_URL>, std::string> uri;
00059    typedef option_traits<curl_easyopt<CURLOPT_POSTFIELDS>, std::string> postfields;
00060 
00061    typedef option_traits<curl_easyopt<CURLOPT_READFUNCTION>, curl_read_callback> readcb;
00062    typedef option_traits<curl_easyopt<CURLOPT_READDATA>, void *> readdata;
00063 
00064    typedef option_traits<curl_easyopt<CURLOPT_WRITEFUNCTION>, curl_write_callback> writecb;
00065    typedef option_traits<curl_easyopt<CURLOPT_WRITEDATA>, void *> writedata;
00066 };
00067 
00068 
00069 }}
00070 
00071 #endif //FM_LAST_MOOST_MURCL_OPTIONS_HPP__