
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. | |
| MethodHelp::MethodHelp | ( | XmlRpcServer * | s | ) | [inline] |
| void MethodHelp::execute | ( | XmlRpcValue & | params, | |
| XmlRpcValue & | result | |||
| ) | [inline, virtual] |
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod.
00264 { 00265 if (params[0].getType() != XmlRpcValue::TypeString) 00266 throw XmlRpcException(METHOD_HELP + ": Invalid argument type"); 00267 00268 XmlRpcServerMethod* m = _server->findMethod(params[0]); 00269 if ( ! m) 00270 throw XmlRpcException(METHOD_HELP + ": Unknown method name"); 00271 00272 result = m->help(); 00273 }
| 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.
1.5.3