XmlRpcServerMethod.h

Go to the documentation of this file.
00001 
00002 #ifndef _XMLRPCSERVERMETHOD_H_
00003 #define _XMLRPCSERVERMETHOD_H_
00004 //
00005 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
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   // Representation of a parameter or result value
00024   class XmlRpcValue;
00025 
00026   // The XmlRpcServer processes client requests to call RPCs
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 } // namespace XmlRpc
00052 
00053 #endif // _XMLRPCSERVERMETHOD_H_
Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3