~ubuntu-branches/ubuntu/wily/flrig/wily

« back to all changes in this revision

Viewing changes to .pc/0001-License-Declaration.patch/src/xmlrpcpp/XmlRpcServerMethod.h

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2014-10-25 11:17:10 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141025111710-n32skgya3l9u1brw
Tags: 1.3.17-1
* New upstream release (Closes: #761839)
* Debian Standards-Version: 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef _XMLRPCSERVERMETHOD_H_
3
 
#define _XMLRPCSERVERMETHOD_H_
4
 
//
5
 
// XmlRpc++ Copyright (c) 2002-2008 by Chris Morley
6
 
//
7
 
#if defined(_MSC_VER)
8
 
# pragma warning(disable:4786)    // identifier was truncated in debug info
9
 
#endif
10
 
 
11
 
#include <string>
12
 
 
13
 
namespace XmlRpc {
14
 
 
15
 
  // Representation of a parameter or result value
16
 
  class XmlRpcValue;
17
 
 
18
 
  // The XmlRpcServer processes client requests to call RPCs
19
 
  class XmlRpcServer;
20
 
 
21
 
  //! Abstract class representing a single RPC method
22
 
  class XmlRpcServerMethod {
23
 
  public:
24
 
    //! Constructor
25
 
    XmlRpcServerMethod(std::string const& name, XmlRpcServer* server = 0);
26
 
    //! Destructor
27
 
    virtual ~XmlRpcServerMethod();
28
 
 
29
 
    //! Returns the name of the method
30
 
    std::string& name() { return _name; }
31
 
 
32
 
    //! Execute the method. Subclasses must provide a definition for this method.
33
 
    virtual void execute(XmlRpcValue& params, XmlRpcValue& result) = 0;
34
 
 
35
 
    //! Returns a help string for the method.
36
 
    //! Subclasses should define this method if introspection is being used.
37
 
    virtual std::string help() { return std::string(); }
38
 
 
39
 
  protected:
40
 
    std::string _name;
41
 
    XmlRpcServer* _server;
42
 
  };
43
 
} // namespace XmlRpc
44
 
 
45
 
#endif // _XMLRPCSERVERMETHOD_H_