CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
XmlRpcServerMethod.cpp
Go to the documentation of this file.
1
3#include "XmlRpcServer.h"
4
5namespace 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
std::string & name()
Returns the name of the method.
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
virtual ~XmlRpcServerMethod()
Destructor.
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:33
void removeMethod(XmlRpcServerMethod *method)
Remove a command from the RPC server.
void addMethod(XmlRpcServerMethod *method)
Add a command to the RPC server.
Definition: XmlRpc.h:35