Main Page
Namespaces
Classes
Files
File List
File Members
src
XmlRpcServerMethod.cpp
Go to the documentation of this file.
1
2
#include "
xmlrpcpp/XmlRpcServerMethod.h
"
3
#include "
xmlrpcpp/XmlRpcServer.h
"
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
15
XmlRpcServerMethod::~XmlRpcServerMethod
()
16
{
17
if
(
_server
)
_server
->
removeMethod
(
this
);
18
}
19
20
21
}
// namespace XmlRpc
XmlRpc
Definition:
XmlRpcClient.h:20
XmlRpcServer.h
XmlRpc::XmlRpcServer::addMethod
void addMethod(XmlRpcServerMethod *method)
Add a command to the RPC server.
Definition:
XmlRpcServer.cpp:63
XmlRpc::XmlRpcServer::removeMethod
void removeMethod(XmlRpcServerMethod *method)
Remove a command from the RPC server.
Definition:
XmlRpcServer.cpp:70
XmlRpc::XmlRpcServerMethod::_server
XmlRpcServer * _server
Definition:
XmlRpcServerMethod.h:45
XmlRpcServerMethod.h
XmlRpc::XmlRpcServer
A class to handle XML RPC requests.
Definition:
XmlRpcServer.h:39
XmlRpc::XmlRpcServerMethod::~XmlRpcServerMethod
virtual ~XmlRpcServerMethod()
Destructor.
Definition:
XmlRpcServerMethod.cpp:15
XmlRpc::XmlRpcServerMethod::XmlRpcServerMethod
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
Definition:
XmlRpcServerMethod.cpp:8
XmlRpc::XmlRpcServerMethod::_name
std::string _name
Definition:
XmlRpcServerMethod.h:44
XmlRpc::XmlRpcServerMethod::name
std::string & name()
Returns the name of the method.
Definition:
XmlRpcServerMethod.h:34
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51