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

Public Member Functions

 NestedStructTest (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 153 of file Validator.cpp.

Constructor & Destructor Documentation

◆ NestedStructTest()

NestedStructTest::NestedStructTest ( XmlRpcServer s)
inline

Definition at line 156 of file Validator.cpp.

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

Member Function Documentation

◆ execute()

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

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

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 158 of file Validator.cpp.

159 {
160 std::cerr << "NestedStructTest\n";
161 XmlRpcValue& dayStruct = params[0]["2000"]["04"]["01"];
162 int sum = int(dayStruct["moe"]) + int(dayStruct["larry"]) + int(dayStruct["curly"]);
163 result = sum;
164 }
RPC method arguments and results are represented by Values.
Definition: XmlRpcValue.h:22

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