#include <XmlRpcServerMethod.h>
Public Member Functions | |
XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0) | |
Constructor. | |
virtual | ~XmlRpcServerMethod () |
Destructor. | |
std::string & | name () |
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 |
XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod | ( | std::string const & | name, | |
XmlRpcServer * | server = 0 | |||
) |
XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod | ( | ) | [virtual] |
std::string& XmlRpc::XmlRpcServerMethod::name | ( | ) | [inline] |
virtual void XmlRpc::XmlRpcServerMethod::execute | ( | XmlRpcValue & | params, | |
XmlRpcValue & | result | |||
) | [pure virtual] |
Execute the method. Subclasses must provide a definition for this method.
Implemented in ListMethods, MethodHelp, P2pnsRegister, P2pnsResolve, LocalLookup, Lookup, Put, Get, and JoinOverlay.
virtual std::string XmlRpc::XmlRpcServerMethod::help | ( | ) | [inline, virtual] |
Returns a help string for the method.
Subclasses should define this method if introspection is being used.
Reimplemented in ListMethods, MethodHelp, P2pnsRegister, P2pnsResolve, LocalLookup, Lookup, Put, Get, and JoinOverlay.
std::string XmlRpc::XmlRpcServerMethod::_name [protected] |
XmlRpcServer* XmlRpc::XmlRpcServerMethod::_server [protected] |