initial load of upstream version 1.06.32
[xmlrpc-c] / include / xmlrpc-c / client_simple.hpp
diff --git a/include/xmlrpc-c/client_simple.hpp b/include/xmlrpc-c/client_simple.hpp
new file mode 100644 (file)
index 0000000..52e6c2b
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef CLIENT_SIMPLE_HPP_INCLUDED
+#define CLIENT_SIMPLE_HPP_INCLUDED
+
+#include <string>
+
+#include <xmlrpc-c/base.hpp>
+#include <xmlrpc-c/client.hpp>
+
+namespace xmlrpc_c {
+
+
+class clientSimple {
+
+public:
+    clientSimple();
+
+    void
+    call(std::string       const serverUrl,
+         std::string       const methodName,
+         xmlrpc_c::value * const resultP);
+
+    void
+    call(std::string       const serverUrl,
+         std::string       const methodName,
+         std::string       const format,
+         xmlrpc_c::value * const resultP,
+         ...);
+
+    void
+    call(std::string         const  serverUrl,
+         std::string         const  methodName,
+         xmlrpc_c::paramList const& paramList,
+         xmlrpc_c::value *   const  resultP);
+
+private:
+    xmlrpc_c::clientPtr clientP;
+};
+
+} // namespace
+#endif
+
+
+
+