Public Member Functions | |
| MethodHelp (XmlRpcServer *s) | |
| void | execute (XmlRpcValue ¶ms, XmlRpcValue &result) |
| Execute the method. Subclasses must provide a definition for this method. | |
| std::string | help () |
| Returns a help string for the method. | |
Definition at line 262 of file XmlRpcServer.cc.
| MethodHelp::MethodHelp | ( | XmlRpcServer * | s | ) | [inline] |
Definition at line 265 of file XmlRpcServer.cc.
: XmlRpcServerMethod(METHOD_HELP, s) {}
| void MethodHelp::execute | ( | XmlRpcValue & | params, | |
| XmlRpcValue & | result | |||
| ) | [inline, virtual] |
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod.
Definition at line 267 of file XmlRpcServer.cc.
{
if (params[0].getType() != XmlRpcValue::TypeString)
throw XmlRpcException(METHOD_HELP + ": Invalid argument type");
XmlRpcServerMethod* m = _server->findMethod(params[0]);
if ( ! m)
throw XmlRpcException(METHOD_HELP + ": Unknown method name");
result = m->help();
}
| std::string MethodHelp::help | ( | ) | [inline, virtual] |
Returns a help string for the method.
Subclasses should define this method if introspection is being used.
Reimplemented from XmlRpc::XmlRpcServerMethod.
Definition at line 279 of file XmlRpcServer.cc.
{ return std::string("Retrieve the help string for a named method"); }
1.7.1