2
0

systemProxy.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*=============================================================================
  2. systemProxy
  3. ===============================================================================
  4. This is a proxy class for the introspection system methods of the server.
  5. Note that you can use 'xmlrpc_cpp_proxy' itself to generate this
  6. file, but we hand-edit it to make it easier to read.
  7. =============================================================================*/
  8. #include "systemProxy.hpp"
  9. using namespace std;
  10. xmlrpc_c::value // array
  11. systemProxy::listMethods(string const& serverUrl) {
  12. xmlrpc_c::paramList params;
  13. xmlrpc_c::value result;
  14. this->call(serverUrl, "system.listMethods", &result);
  15. return result;
  16. }
  17. xmlrpc_c::value // array
  18. systemProxy::methodSignature(string const& serverUrl,
  19. string const& methodName) {
  20. xmlrpc_c::paramList params;
  21. params.add(xmlrpc_c::value_string(methodName));
  22. xmlrpc_c::value result;
  23. this->call(serverUrl, "system.methodSignature", params, &result);
  24. return result;
  25. }
  26. string
  27. systemProxy::methodHelp(string const& serverUrl,
  28. string const& methodName) {
  29. xmlrpc_c::paramList params;
  30. params.add(xmlrpc_c::value_string(methodName));
  31. xmlrpc_c::value result;
  32. this->call(serverUrl, "system.methodHelp", params, &result);
  33. return xmlrpc_c::value_string(result);
  34. }