CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
ArrayOfStructsTest Class Reference
+ Inheritance diagram for ArrayOfStructsTest:

Public Member Functions

 ArrayOfStructsTest (XmlRpcServer *s)
 
void execute (XmlRpcValue &params, XmlRpcValue &result)
 Execute the method. Subclasses must provide a definition for this method.
 
- Public Member Functions inherited from XmlRpc::XmlRpcServerMethod
 XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0)
 Constructor.
 
virtual ~XmlRpcServerMethod ()
 Destructor.
 
std::string & name ()
 Returns the name of the method.
 
virtual void execute (XmlRpcValue &params, XmlRpcValue &result)=0
 Execute the method. Subclasses must provide a definition for this method.
 
virtual std::string help ()
 

Additional Inherited Members

- Protected Attributes inherited from XmlRpc::XmlRpcServerMethod
std::string _name
 
XmlRpcServer_server
 

Detailed Description

Definition at line 15 of file Validator.cpp.

Constructor & Destructor Documentation

◆ ArrayOfStructsTest()

ArrayOfStructsTest::ArrayOfStructsTest ( XmlRpcServer s)
inline

Definition at line 18 of file Validator.cpp.

18: XmlRpcServerMethod("validator1.arrayOfStructsTest", s) {}
XmlRpcServer s
Definition: Validator.cpp:9
Abstract class representing a single RPC method.

Member Function Documentation

◆ execute()

void ArrayOfStructsTest::execute ( XmlRpcValue params,
XmlRpcValue result 
)
inlinevirtual

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 }
const Int_t n
RPC method arguments and results are represented by Values.
Definition: XmlRpcValue.h:22
int size() const
Return the size for string, base64, array, and struct values.

The documentation for this class was generated from the following file: