BOSS 8.0.0
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 std::string help ()

Additional Inherited Members

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

Detailed Description

Definition at line 13 of file Validator.cpp.

Constructor & Destructor Documentation

◆ ArrayOfStructsTest()

ArrayOfStructsTest::ArrayOfStructsTest ( XmlRpcServer * s)
inline

Definition at line 15 of file Validator.cpp.

16 : XmlRpcServerMethod( "validator1.arrayOfStructsTest", s ) {}
XmlRpcServer s
Definition Validator.cpp:8
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.

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 18 of file Validator.cpp.

18 {
19 std::cerr << "ArrayOfStructsTest\n";
20 XmlRpcValue& arg1 = params[0];
21 int n = arg1.size(), sum = 0;
22 for ( int i = 0; i < n; ++i ) sum += int( arg1[i]["curly"] );
23
24 result = sum;
25 }
const Int_t n
int size() const
Return the size for string, base64, array, and struct values.

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