Inheritance diagram for Sum:
Public Member Functions | |
void | execute (XmlRpcValue ¶ms, XmlRpcValue &result) |
Execute the method. Subclasses must provide a definition for this method. | |
virtual std::string | help () |
std::string & | name () |
Returns the name of the method. | |
Sum (XmlRpcServer *s) | |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
|
00048 : XmlRpcServerMethod("Sum", s) {}
|
|
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod. 00051 { 00052 int nArgs = params.size(); 00053 double sum = 0.0; 00054 for (int i=0; i<nArgs; ++i) 00055 sum += double(params[i]); 00056 result = sum; 00057 }
|
|
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; }
|
|
|
|
|