OverSim
|
Abstract class representing a single RPC method. More...
#include <XmlRpcServerMethod.h>
Public Member Functions | |
XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0) | |
Constructor. | |
virtual | ~XmlRpcServerMethod () |
Destructor. | |
std::string & | getName () |
Returns the name of the method. | |
virtual void | execute (XmlRpcValue ¶ms, XmlRpcValue &result)=0 |
Execute the method. Subclasses must provide a definition for this method. | |
virtual std::string | help () |
Returns a help string for the method. |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
Abstract class representing a single RPC method.
Definition at line 30 of file XmlRpcServerMethod.h.
XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod | ( | std::string const & | name, |
XmlRpcServer * | server = 0 |
||
) |
|
virtual |
Destructor.
Definition at line 20 of file XmlRpcServerMethod.cc.
|
pure virtual |
Execute the method. Subclasses must provide a definition for this method.
Implemented in MethodHelp, ListMethods, JoinOverlay, DumpDht, Get, Put, Lookup, LocalLookup, P2pnsResolve, and P2pnsRegister.
Referenced by XmlRpc::XmlRpcServer::executeMethod().
|
inline |
Returns the name of the method.
Definition at line 38 of file XmlRpcServerMethod.h.
Referenced by XmlRpc::XmlRpcServer::addMethod(), and XmlRpc::XmlRpcServer::removeMethod().
|
inlinevirtual |
Returns a help string for the method.
Subclasses should define this method if introspection is being used.
Reimplemented in MethodHelp, ListMethods, JoinOverlay, DumpDht, Get, Put, Lookup, LocalLookup, P2pnsResolve, and P2pnsRegister.
Definition at line 45 of file XmlRpcServerMethod.h.
Referenced by MethodHelp::execute().
|
protected |
Definition at line 48 of file XmlRpcServerMethod.h.
Referenced by getName(), and XmlRpcServerMethod().
|
protected |
Definition at line 49 of file XmlRpcServerMethod.h.
Referenced by XmlRpcServerMethod(), and ~XmlRpcServerMethod().