1 #ifndef CLIENT_SIMPLE_HPP_INCLUDED 2 #define CLIENT_SIMPLE_HPP_INCLUDED 3 4 #include <string> 5 6 #include <xmlrpc-c/c_util.h> 7 #include <xmlrpc-c/base.hpp> 8 #include <xmlrpc-c/client.hpp> 9 10 /* 11 XMLRPC_CLIENTPP_EXPORTED marks a symbol in this file that is exported 12 from libxmlrpc_client++. 13 14 XMLRPC_BUILDING_CLIENTPP says this compilation is part of 15 libxmlrpc_client++, as opposed to something that _uses_ libxmlrpc_client++. 16 */ 17 #ifdef XMLRPC_BUILDING_CLIENTPP 18 #define XMLRPC_CLIENTPP_EXPORTED XMLRPC_DLLEXPORT 19 #else 20 #define XMLRPC_CLIENTPP_EXPORTED 21 #endif 22 23 namespace xmlrpc_c { 24 25 class XMLRPC_CLIENTPP_EXPORTED clientSimple { 26 27 public: 28 clientSimple(); 29 30 void 31 call(std::string const serverUrl, 32 std::string const methodName, 33 xmlrpc_c::value * const resultP); 34 35 void 36 call(std::string const serverUrl, 37 std::string const methodName, 38 std::string const format, 39 xmlrpc_c::value * const resultP, 40 ...); 41 42 void 43 call(std::string const serverUrl, 44 std::string const methodName, 45 xmlrpc_c::paramList const& paramList, 46 xmlrpc_c::value * const resultP); 47 48 private: 49 xmlrpc_c::clientPtr clientP; 50 }; 51 52 } // namespace 53 #endif 54 55 56 57 58