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

Public Member Functions

 EasyStructTest (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 79 of file Validator.cpp.

Constructor & Destructor Documentation

◆ EasyStructTest()

EasyStructTest::EasyStructTest ( XmlRpcServer * s)
inline

Definition at line 82 of file Validator.cpp.

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

Member Function Documentation

◆ execute()

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

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

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 84 of file Validator.cpp.

85 {
86 std::cerr << "EasyStructTest\n";
87 XmlRpcValue& arg1 = params[0];
88 int sum = int(arg1["moe"]) + int(arg1["larry"]) + int(arg1["curly"]);
89 result = sum;
90 }
RPC method arguments and results are represented by Values.
Definition XmlRpcValue.h:22

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