Definition at line 15 of file Validator.cpp.
◆ ArrayOfStructsTest()
Definition at line 18 of file Validator.cpp.
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
◆ execute()
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod.
Definition at line 20 of file Validator.cpp.
21 {
22 std::cerr << "ArrayOfStructsTest\n";
23 XmlRpcValue& arg1 = params[0];
24 int n = arg1.
size(), sum = 0;
25 for (
int i=0; i<
n; ++i)
26 sum += int(arg1[i]["curly"]);
27
28 result = sum;
29 }
int size() const
Return the size for string, base64, array, and struct values.
The documentation for this class was generated from the following file: