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 namespace xmlrpc_c {
11 
12 class XMLRPC_DLLEXPORT clientSimple {
13 
14 public:
15     clientSimple();
16 
17     void
18     call(std::string       const serverUrl,
19          std::string       const methodName,
20          xmlrpc_c::value * const resultP);
21 
22     void
23     call(std::string       const serverUrl,
24          std::string       const methodName,
25          std::string       const format,
26          xmlrpc_c::value * const resultP,
27          ...);
28 
29     void
30     call(std::string         const  serverUrl,
31          std::string         const  methodName,
32          xmlrpc_c::paramList const& paramList,
33          xmlrpc_c::value *   const  resultP);
34 
35 private:
36     xmlrpc_c::clientPtr clientP;
37 };
38 
39 } // namespace
40 #endif
41 
42 
43 
44 
45