Home | History | Annotate | Download | only in src
      1 
      2 #include "XmlRpcServerMethod.h"
      3 #include "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
     22