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, ListMethods, SimpleStructReturnTest, NestedStructTest, ModerateSizeArrayCheck, ManyTypesTest, EchoStructTest, EasyStructTest, Sum, HelloName, Sum, Sum, Hello, CountTheEntities, Hello, HelloName, HelloName, TestBase64, ArrayOfStructsTest, Hello, and Hello.
|
inlinevirtual |
Returns a help string for the method. Subclasses should define this method if introspection is being used.
Reimplemented in MethodHelp, ListMethods, Hello, Hello, and Hello.
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.