File: systemProxy.cpp

package info (click to toggle)
xmlrpc-c 1.60.05-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,132 kB
  • sloc: ansic: 55,332; cpp: 13,541; sh: 3,321; makefile: 2,556; perl: 593; xml: 134
file content (57 lines) | stat: -rw-r--r-- 1,436 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*=============================================================================
                              systemProxy
===============================================================================

  This is a proxy class for the introspection system methods of the server.

  Note that you can use 'xmlrpc_cpp_proxy' itself to generate this
  file, but we hand-edit it to make it easier to read.

=============================================================================*/

#include "systemProxy.hpp"

using namespace std;

xmlrpc_c::value // array
systemProxy::listMethods(string const& serverUrl) {

    xmlrpc_c::paramList params;
    xmlrpc_c::value result;

    this->call(serverUrl, "system.listMethods", &result);

    return result;
}



xmlrpc_c::value // array
systemProxy::methodSignature(string const& serverUrl,
                             string const& methodName) {

    xmlrpc_c::paramList params;
    params.add(xmlrpc_c::value_string(methodName));

    xmlrpc_c::value result;

    this->call(serverUrl, "system.methodSignature", params, &result);

    return result;
}



string
systemProxy::methodHelp(string const& serverUrl,
                        string const& methodName) {

    xmlrpc_c::paramList params;
    params.add(xmlrpc_c::value_string(methodName));

    xmlrpc_c::value result;

    this->call(serverUrl, "system.methodHelp", params, &result);

    return xmlrpc_c::value_string(result);
}