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
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:39
virtual ~XmlRpcServerMethod()
Destructor.
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
std::string & name()
Returns the name of the method.


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51