include
xmlrpcpp
XmlRpcServerMethod.h
Go to the documentation of this file.
1
2
#ifndef _XMLRPCSERVERMETHOD_H_
3
#define _XMLRPCSERVERMETHOD_H_
4
//
5
// XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
6
//
7
#if defined(_MSC_VER)
8
# pragma warning(disable:4786) // identifier was truncated in debug info
9
#endif
10
11
#include "
xmlrpcpp/XmlRpcDecl.h
"
12
13
#ifndef MAKEDEPEND
14
# include <string>
15
#endif
16
17
namespace
XmlRpc
{
18
19
// Representation of a parameter or result value
20
class
XmlRpcValue;
21
22
// The XmlRpcServer processes client requests to call RPCs
23
class
XmlRpcServer;
24
26
class
XMLRPCPP_DECL
XmlRpcServerMethod
{
27
public
:
29
XmlRpcServerMethod
(std::string
const
& name,
XmlRpcServer
* server = 0);
31
virtual
~
XmlRpcServerMethod
();
32
34
std::string&
name
() {
return
_name; }
35
37
virtual
void
execute
(
XmlRpcValue
& params,
XmlRpcValue
& result) = 0;
38
41
virtual
std::string
help
() {
return
std::string(); }
42
43
protected
:
44
std::string
_name
;
45
XmlRpcServer
*
_server
;
46
};
47
}
// namespace XmlRpc
48
49
#endif // _XMLRPCSERVERMETHOD_H_
XmlRpc
Definition:
XmlRpcClient.h:20
XmlRpc::XmlRpcValue
RPC method arguments and results are represented by Values.
Definition:
XmlRpcValue.h:24
XmlRpc::XmlRpcServerMethod::_server
XmlRpcServer * _server
Definition:
XmlRpcServerMethod.h:45
execute
void execute(XmlRpcValue ¶ms, XmlRpcValue &result)
Definition:
HelloServer.cpp:15
XmlRpc::XmlRpcServerMethod
Abstract class representing a single RPC method.
Definition:
XmlRpcServerMethod.h:26
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition:
XmlRpcDecl.h:52
XmlRpc::XmlRpcServer
A class to handle XML RPC requests.
Definition:
XmlRpcServer.h:41
XmlRpcDecl.h
XmlRpc::XmlRpcServerMethod::_name
std::string _name
Definition:
XmlRpcServerMethod.h:44
XmlRpc::XmlRpcServerMethod::help
virtual std::string help()
Definition:
XmlRpcServerMethod.h:41
XmlRpc::XmlRpcServerMethod::name
std::string & name()
Returns the name of the method.
Definition:
XmlRpcServerMethod.h:34
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:22