XmlRpcServerMethod.cpp
Go to the documentation of this file.
1 
4 
5 namespace XmlRpc {
6 
7 
8  XmlRpcServerMethod::XmlRpcServerMethod(std::string const& name, XmlRpcServer* server)
9  {
10  _name = name;
11  _server = server;
12  if (_server) _server->addMethod(this);
13  }
14 
16  {
17  if (_server) _server->removeMethod(this);
18  }
19 
20 
21 } // namespace XmlRpc
virtual ~XmlRpcServerMethod()
Destructor.
Definition: XmlRpc.h:39
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
void addMethod(XmlRpcServerMethod *method)
Add a command to the RPC server.
void removeMethod(XmlRpcServerMethod *method)
Remove a command from the RPC server.
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:37
std::string & name()
Returns the name of the method.


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Mon Jun 10 2019 14:48:08