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
XmlRpc::XmlRpcServer
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:41
XmlRpc::XmlRpcServerMethod::_name
std::string _name
Definition: XmlRpcServerMethod.h:44
XmlRpcServer.h
XmlRpc
Definition: XmlRpcClient.h:20
XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
Definition: XmlRpcServerMethod.cpp:8
XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod
virtual ~XmlRpcServerMethod()
Destructor.
Definition: XmlRpcServerMethod.cpp:15
XmlRpc::XmlRpcServerMethod::_server
XmlRpcServer * _server
Definition: XmlRpcServerMethod.h:45
XmlRpc::XmlRpcServerMethod::name
std::string & name()
Returns the name of the method.
Definition: XmlRpcServerMethod.h:34
XmlRpcServerMethod.h
XmlRpc::XmlRpcServer::removeMethod
void removeMethod(XmlRpcServerMethod *method)
Remove a command from the RPC server.
Definition: XmlRpcServer.cpp:76
XmlRpc::XmlRpcServer::addMethod
void addMethod(XmlRpcServerMethod *method)
Add a command to the RPC server.
Definition: XmlRpcServer.cpp:69


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas , Jacob Perron
autogenerated on Thu Nov 23 2023 04:01:41