ArrayOfStructsTest Class Reference

Inheritance diagram for ArrayOfStructsTest:

XmlRpc::XmlRpcServerMethod List of all members.

Public Member Functions

 ArrayOfStructsTest (XmlRpcServer *s)
void execute (XmlRpcValue &params, XmlRpcValue &result)
 Execute the method. Subclasses must provide a definition for this method.
std::stringname ()
 Returns the name of the method.
virtual std::string help ()

Protected Attributes

std::string _name
XmlRpcServer * _server

Detailed Description

Definition at line 15 of file Validator.cpp.


Constructor & Destructor Documentation

ArrayOfStructsTest::ArrayOfStructsTest ( XmlRpcServer s  )  [inline]

Definition at line 18 of file Validator.cpp.

00018 : XmlRpcServerMethod("validator1.arrayOfStructsTest", s) {}


Member Function Documentation

void ArrayOfStructsTest::execute ( XmlRpcValue params,
XmlRpcValue result 
) [inline, virtual]

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

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 20 of file Validator.cpp.

References genRecEmupikp::i, and XmlRpc::XmlRpcValue::size().

00021   {
00022     std::cerr << "ArrayOfStructsTest\n";
00023     XmlRpcValue& arg1 = params[0];
00024     int n = arg1.size(), sum = 0;
00025     for (int i=0; i<n; ++i) 
00026       sum += int(arg1[i]["curly"]);
00027 
00028     result = sum;
00029   }

virtual std::string XmlRpc::XmlRpcServerMethod::help (  )  [inline, virtual, inherited]

Returns a help string for the method. Subclasses should define this method if introspection is being used.

Reimplemented in ListMethods, MethodHelp, and Hello.

Definition at line 39 of file XmlRpcServerMethod.h.

References deljobs::string.

Referenced by MethodHelp::execute().

00039 { return std::string(); }

std::string& XmlRpc::XmlRpcServerMethod::name ( void   )  [inline, inherited]

Returns the name of the method.

Definition at line 32 of file XmlRpcServerMethod.h.

References XmlRpc::XmlRpcServerMethod::_name.

Referenced by XmlRpc::XmlRpcServer::addMethod(), and XmlRpc::XmlRpcServer::removeMethod().

00032 { return _name; }


Member Data Documentation

std::string XmlRpc::XmlRpcServerMethod::_name [protected, inherited]

Definition at line 42 of file XmlRpcServerMethod.h.

Referenced by XmlRpc::XmlRpcServerMethod::name(), and XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod().

XmlRpcServer* XmlRpc::XmlRpcServerMethod::_server [protected, inherited]

Definition at line 43 of file XmlRpcServerMethod.h.

Referenced by XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod(), and XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod().


Generated on Tue Nov 29 23:17:26 2016 for BOSS_7.0.2 by  doxygen 1.4.7