MethodHelp Class Reference

Inheritance diagram for MethodHelp:
XmlRpc::XmlRpcServerMethod

List of all members.

Public Member Functions

 MethodHelp (XmlRpcServer *s)
void execute (XmlRpcValue &params, XmlRpcValue &result)
 Execute the method. Subclasses must provide a definition for this method.
std::string help ()
 Returns a help string for the method.

Detailed Description

Definition at line 262 of file XmlRpcServer.cc.


Constructor & Destructor Documentation

MethodHelp::MethodHelp ( XmlRpcServer s  )  [inline]

Definition at line 265 of file XmlRpcServer.cc.


Member Function Documentation

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.

00268   {
00269     if (params[0].getType() != XmlRpcValue::TypeString)
00270       throw XmlRpcException(METHOD_HELP + ": Invalid argument type");
00271 
00272     XmlRpcServerMethod* m = _server->findMethod(params[0]);
00273     if ( ! m)
00274       throw XmlRpcException(METHOD_HELP + ": Unknown method name");
00275 
00276     result = m->help();
00277   }

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.

00279 { return std::string("Retrieve the help string for a named method"); }


The documentation for this class was generated from the following file:
Generated on Wed May 26 16:21:18 2010 for OverSim by  doxygen 1.6.3