XmlRpcServerMethod.h
Go to the documentation of this file.00001
00002 #ifndef _XMLRPCSERVERMETHOD_H_
00003 #define _XMLRPCSERVERMETHOD_H_
00004
00005
00006
00007
00013 #if defined(_MSC_VER)
00014 # pragma warning(disable:4786) // identifier was truncated in debug info
00015 #endif
00016
00017 #ifndef MAKEDEPEND
00018 # include <string>
00019 #endif
00020
00021 namespace XmlRpc {
00022
00023
00024 class XmlRpcValue;
00025
00026
00027 class XmlRpcServer;
00028
00030 class XmlRpcServerMethod {
00031 public:
00033 XmlRpcServerMethod(std::string const& name, XmlRpcServer* server = 0);
00035 virtual ~XmlRpcServerMethod();
00036
00038 std::string& getName() { return _name; }
00039
00041 virtual void execute(XmlRpcValue& params, XmlRpcValue& result) = 0;
00042
00045 virtual std::string help() { return std::string(); }
00046
00047 protected:
00048 std::string _name;
00049 XmlRpcServer* _server;
00050 };
00051 }
00052
00053 #endif // _XMLRPCSERVERMETHOD_H_