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 
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;
46  };
47 } // namespace XmlRpc
48 
49 #endif // _XMLRPCSERVERMETHOD_H_
XmlRpc::XmlRpcServer
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:41
XmlRpc::XmlRpcServerMethod::help
virtual std::string help()
Definition: XmlRpcServerMethod.h:41
XmlRpc::XmlRpcServerMethod::_name
std::string _name
Definition: XmlRpcServerMethod.h:44
XmlRpc
Definition: XmlRpcClient.h:20
execute
void execute(XmlRpcValue &params, XmlRpcValue &result)
Definition: HelloServer.cpp:15
XmlRpcDecl.h
XmlRpc::XmlRpcServerMethod
Abstract class representing a single RPC method.
Definition: XmlRpcServerMethod.h:26
XmlRpc::XmlRpcServerMethod::_server
XmlRpcServer * _server
Definition: XmlRpcServerMethod.h:45
XmlRpc::XmlRpcServerMethod::name
std::string & name()
Returns the name of the method.
Definition: XmlRpcServerMethod.h:34
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:52
XmlRpc::XmlRpcValue
RPC method arguments and results are represented by Values.
Definition: XmlRpcValue.h:24


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32