XmlRpcServerMethod.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 
3 #ifndef _XMLRPCSERVERMETHOD_H_
4 #define _XMLRPCSERVERMETHOD_H_
5 //
6 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
7 //
8 #if defined(_MSC_VER)
9 # pragma warning(disable:4786) // identifier was truncated in debug info
10 #endif
11 
12 #include "xmlrpcpp/XmlRpcDecl.h"
13 
14 #ifndef MAKEDEPEND
15 # include <string>
16 #endif
17 
18 namespace XmlRpc {
19 
20  // Representation of a parameter or result value
21  class XmlRpcValue;
22 
23  // The XmlRpcServer processes client requests to call RPCs
24  class XmlRpcServer;
25 
27  class XMLRPCPP_DECL XmlRpcServerMethod {
28  public:
30  XmlRpcServerMethod(std::string const& name, XmlRpcServer* server = 0);
32  virtual ~XmlRpcServerMethod();
33 
35  std::string& name() { return _name; }
36 
38  virtual void execute(XmlRpcValue& params, XmlRpcValue& result) = 0;
39 
42  virtual std::string help() { return std::string(); }
43 
44  protected:
45  std::string _name;
46  XmlRpcServer* _server;
47  };
48 } // namespace XmlRpc
49 
50 #endif // _XMLRPCSERVERMETHOD_H_
roswrap::master::execute
ROSCPP_DECL bool execute(const std::string &method, const XmlRpc::XmlRpcValue &request, XmlRpc::XmlRpcValue &response, XmlRpc::XmlRpcValue &payload, bool wait_for_master)
Execute an XMLRPC call on the master.
XmlRpc
api.setup.name
name
Definition: python/api/setup.py:12
sick_scan_base.h
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:53
test_server.help
help
Definition: test_server.py:210
test_server.server
server
Definition: test_server.py:219


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13