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_
RPC method arguments and results are represented by Values.
Definition: XmlRpcValue.h:24
void execute(XmlRpcValue &params, XmlRpcValue &result)
Definition: HelloServer.cpp:15
Abstract class representing a single RPC method.
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:52
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:39
virtual std::string help()
std::string & name()
Returns the name of the method.


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51