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

Additional Inherited Members

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

Detailed Description

Definition at line 130 of file Validator.cpp.

Constructor & Destructor Documentation

◆ NestedStructTest()

NestedStructTest::NestedStructTest ( XmlRpcServer * s)
inline

Definition at line 132 of file Validator.cpp.

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

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

135 {
136 std::cerr << "NestedStructTest\n";
137 XmlRpcValue& dayStruct = params[0]["2000"]["04"]["01"];
138 int sum = int( dayStruct["moe"] ) + int( dayStruct["larry"] ) + int( dayStruct["curly"] );
139 result = sum;
140 }

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