Menu

[r1498]: / advanced / tools / xmlrpc_cpp_proxy / xmlrpcMethod.hpp  Maximize  Restore  History

Download this file

60 lines (44 with data), 1.6 kB

 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
58
59
#ifndef XMLRPCMETHOD_HPP
#define XMLRPCMETHOD_HPP
#include <string>
#include <iostream>
#include <xmlrpc-c/base.hpp>
class xmlrpcMethod {
// An object of this class contains everything we know about a
// given XML-RPC method, and knows how to print local bindings.
std::string mFunctionName;
std::string mMethodName;
std::string mHelp;
xmlrpc_c::value_array mSynopsis;
public:
xmlrpcMethod(std::string const& function_name,
std::string const& method_name,
std::string const& help,
xmlrpc_c::value_array const& signatureList);
xmlrpcMethod(xmlrpcMethod const& f);
xmlrpcMethod& operator= (xmlrpcMethod const& f);
void
printDeclarations(std::ostream& out) const;
void
printDefinitions(std::ostream & out,
std::string const& className) const;
private:
void
printParameters(std::ostream & out,
size_t const synopsis_index) const;
void
printDeclaration(std::ostream & out,
size_t const synopsis_index) const;
void
printDefinition(std::ostream & out,
std::string const& className,
size_t const synopsis_index) const;
const xmlrpcType&
returnType(size_t const synopsis_index) const;
size_t
parameterCount(size_t const synopsis_index) const;
const xmlrpcType&
parameterType(size_t const synopsis_index,
size_t const parameter_index) const;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.