Inheritance diagram for NestedStructTest:
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. | |
NestedStructTest (XmlRpcServer *s) | |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
|
00156 : XmlRpcServerMethod("validator1.nestedStructTest", s) {}
|
|
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod. 00159 { 00160 std::cerr << "NestedStructTest\n"; 00161 XmlRpcValue& dayStruct = params[0]["2000"]["04"]["01"]; 00162 int sum = int(dayStruct["moe"]) + int(dayStruct["larry"]) + int(dayStruct["curly"]); 00163 result = sum; 00164 }
|
|
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; }
|
|
|
|
|