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. | |
| virtual std::string | help () |
| std::string & | name () |
| Returns the name of the method. | |
| XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0) | |
| Constructor. | |
| virtual | ~XmlRpcServerMethod () |
| Destructor. | |
Protected Attributes | |
| std::string | _name |
| XmlRpcServer * | _server |
Abstract class representing a single RPC method.
Definition at line 26 of file XmlRpcServerMethod.h.
| XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod | ( | std::string const & | name, |
| XmlRpcServer * | server = 0 |
||
| ) |
Constructor.
Definition at line 8 of file XmlRpcServerMethod.cpp.
| XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod | ( | ) | [virtual] |
Destructor.
Definition at line 15 of file XmlRpcServerMethod.cpp.
| virtual void XmlRpc::XmlRpcServerMethod::execute | ( | XmlRpcValue & | params, |
| XmlRpcValue & | result | ||
| ) | [pure virtual] |
Execute the method. Subclasses must provide a definition for this method.
Implemented in MethodHelp, ListMethods, SimpleStructReturnTest, NestedStructTest, ModerateSizeArrayCheck, ManyTypesTest, EchoStructTest, EasyStructTest, Sum, Sum, CountTheEntities, HelloName, HelloName, TestBase64, ArrayOfStructsTest, Hello, and Hello.
| 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 MethodHelp, ListMethods, Hello, and Hello.
Definition at line 41 of file XmlRpcServerMethod.h.
| std::string& XmlRpc::XmlRpcServerMethod::name | ( | ) | [inline] |
Returns the name of the method.
Definition at line 34 of file XmlRpcServerMethod.h.
std::string XmlRpc::XmlRpcServerMethod::_name [protected] |
Definition at line 44 of file XmlRpcServerMethod.h.
XmlRpcServer* XmlRpc::XmlRpcServerMethod::_server [protected] |
Definition at line 45 of file XmlRpcServerMethod.h.