#include <XmlRpcServerMethod.h>
Inheritance diagram for XmlRpc::XmlRpcServerMethod:
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 |
|
Constructor.
00009 { 00010 _name = name; 00011 _server = server; 00012 if (_server) _server->addMethod(this); 00013 }
|
|
Destructor.
00016 { 00017 if (_server) _server->removeMethod(this); 00018 }
|
|
Execute the method. Subclasses must provide a definition for this method.
Implemented in ListMethods, MethodHelp, Hello, HelloName, Sum, TestBase64, ArrayOfStructsTest, CountTheEntities, EasyStructTest, EchoStructTest, ManyTypesTest, ModerateSizeArrayCheck, NestedStructTest, and SimpleStructReturnTest. |
|
Returns a help string for the method. Subclasses should define this method if introspection is being used. Reimplemented in ListMethods, MethodHelp, and Hello. 00039 { return std::string(); }
|
|
Returns the name of the method.
00032 { return _name; }
|
|
|
|
|