BOSS 6.6.4.p01
BESIII Offline Software System
|
Abstract class representing a single RPC method. More...
#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 () |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
Abstract class representing a single RPC method.
Definition at line 24 of file XmlRpcServerMethod.h.
XmlRpc::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 ListMethods, MethodHelp, Hello, HelloName, Sum, TestBase64, ArrayOfStructsTest, CountTheEntities, EasyStructTest, EchoStructTest, ManyTypesTest, ModerateSizeArrayCheck, NestedStructTest, and SimpleStructReturnTest.
Referenced by XmlRpc::XmlRpcServerConnection::executeMethod().
|
inlinevirtual |
Returns a help string for the method. Subclasses should define this method if introspection is being used.
Reimplemented in ListMethods, MethodHelp, and Hello.
Definition at line 39 of file XmlRpcServerMethod.h.
Referenced by MethodHelp::execute().
|
inline |
Returns the name of the method.
Definition at line 32 of file XmlRpcServerMethod.h.
Referenced by XmlRpc::XmlRpcServer::addMethod(), XmlRpc::XmlRpcServer::removeMethod(), and XmlRpcServerMethod().
|
protected |
Definition at line 42 of file XmlRpcServerMethod.h.
Referenced by name(), and XmlRpcServerMethod().
|
protected |
Definition at line 43 of file XmlRpcServerMethod.h.
Referenced by XmlRpcServerMethod(), and ~XmlRpcServerMethod().