OverSim
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 
13 #if defined(_MSC_VER)
14 # pragma warning(disable:4786) // identifier was truncated in debug info
15 #endif
16 
17 #ifndef MAKEDEPEND
18 # include <string>
19 #endif
20 
21 namespace XmlRpc {
22 
23  // Representation of a parameter or result value
24  class XmlRpcValue;
25 
26  // The XmlRpcServer processes client requests to call RPCs
27  class XmlRpcServer;
28 
31  public:
33  XmlRpcServerMethod(std::string const& name, XmlRpcServer* server = 0);
35  virtual ~XmlRpcServerMethod();
36 
38  std::string& getName() { return _name; }
39 
41  virtual void execute(XmlRpcValue& params, XmlRpcValue& result) = 0;
42 
45  virtual std::string help() { return std::string(); }
46 
47  protected:
48  std::string _name;
50  };
51 } // namespace XmlRpc
52 
53 #endif // _XMLRPCSERVERMETHOD_H_