Inheritance diagram for NestedStructTest:
Public Member Functions | |
NestedStructTest (XmlRpcServer *s) | |
void | execute (XmlRpcValue ¶ms, XmlRpcValue &result) |
Execute the method. Subclasses must provide a definition for this method. | |
std::string & | name () |
Returns the name of the method. | |
virtual std::string | help () |
Protected Attributes | |
std::string | _name |
XmlRpcServer * | _server |
Definition at line 153 of file Validator.cpp.
NestedStructTest::NestedStructTest | ( | XmlRpcServer * | s | ) | [inline] |
Definition at line 156 of file Validator.cpp.
00156 : XmlRpcServerMethod("validator1.nestedStructTest", s) {}
void NestedStructTest::execute | ( | XmlRpcValue & | params, | |
XmlRpcValue & | result | |||
) | [inline, virtual] |
Execute the method. Subclasses must provide a definition for this method.
Implements XmlRpc::XmlRpcServerMethod.
Definition at line 158 of file Validator.cpp.
00159 { 00160 std::cerr << "NestedStructTest\n"; 00161 XmlRpcValue& dayStruct = params[0]["2000"]["04"]["01"]; 00162 int sum = int(dayStruct["moe"]) + int(dayStruct["larry"]) + int(dayStruct["curly"]); 00163 result = sum; 00164 }
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; }
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().