2006-12-21 03:57:49 +00:00
|
|
|
#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:
|
2008-05-23 20:56:24 +00:00
|
|
|
xmlrpc_c::clientPtr clientP;
|
2006-12-21 03:57:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|