Abstract class representing a single RPC method. More...
#include <XmlRpcServerMethod.h>
Public Member Functions | |
virtual void | execute (XmlRpcValue ¶ms, XmlRpcValue &result)=0 |
Execute the method. Subclasses must provide a definition for this method. More... | |
virtual std::string | help () |
std::string & | name () |
Returns the name of the method. More... | |
XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0) | |
Constructor. More... | |
virtual | ~XmlRpcServerMethod () |
Destructor. More... | |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
Abstract class representing a single RPC method.
Definition at line 26 of file XmlRpcServerMethod.h.
XmlRpcServerMethod::XmlRpcServerMethod | ( | std::string const & | name, |
XmlRpcServer * | server = 0 |
||
) |
Constructor.
Definition at line 8 of file XmlRpcServerMethod.cpp.
|
virtual |
Destructor.
Definition at line 15 of file XmlRpcServerMethod.cpp.
|
pure virtual |
Execute the method. Subclasses must provide a definition for this method.
Implemented in MethodHelp, SimpleStructReturnTest, NestedStructTest, ModerateSizeArrayCheck, ManyTypesTest, EchoStructTest, EasyStructTest, Sum, HelloName, Sum, Sum, CountTheEntities, HelloName, HelloName, TestBase64, ArrayOfStructsTest, and ListMethods.
|
inlinevirtual |
Returns a help string for the method. Subclasses should define this method if introspection is being used.
Reimplemented in MethodHelp, and ListMethods.
Definition at line 41 of file XmlRpcServerMethod.h.
|
inline |
Returns the name of the method.
Definition at line 34 of file XmlRpcServerMethod.h.
|
protected |
Definition at line 44 of file XmlRpcServerMethod.h.
|
protected |
Definition at line 45 of file XmlRpcServerMethod.h.