BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
SimpleStructReturnTest Class Reference
+ Inheritance diagram for SimpleStructReturnTest:

Public Member Functions

 SimpleStructReturnTest (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 172 of file Validator.cpp.

Constructor & Destructor Documentation

◆ SimpleStructReturnTest()

SimpleStructReturnTest::SimpleStructReturnTest ( XmlRpcServer * s)
inline

Definition at line 175 of file Validator.cpp.

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

Member Function Documentation

◆ execute()

void SimpleStructReturnTest::execute ( XmlRpcValue & params,
XmlRpcValue & result )
inlinevirtual

Execute the method. Subclasses must provide a definition for this method.

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 177 of file Validator.cpp.

178 {
179 std::cerr << "SimpleStructReturnTest\n";
180 int n = params[0];
181 result["times10"] = n * 10;
182 result["times100"] = n * 100;
183 result["times1000"] = n * 1000;
184 }
const Int_t n

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