XmlRpc.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 // this file modified by Morgan Quigley on 22 April 2008 to add
3 // a std::exception-derived class
4 #ifndef _XMLRPC_H_
5 #define _XMLRPC_H_
6 //
7 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 //
22 
23 #if defined(_MSC_VER)
24 # pragma warning(disable:4786) // identifier was truncated in debug info
25 #endif
26 
27 #ifndef MAKEDEPEND
28 # include <string>
29 #endif
30 
31 #include "xmlrpcpp/XmlRpcClient.h"
32 #include "xmlrpcpp/XmlRpcException.h"
33 #include "xmlrpcpp/XmlRpcServer.h"
34 #include "xmlrpcpp/XmlRpcServerMethod.h"
35 #include "xmlrpcpp/XmlRpcValue.h"
36 #include "xmlrpcpp/XmlRpcUtil.h"
37 
38 #include <stdexcept>
39 
40 namespace XmlRpc {
41 
42 
44  class XmlRpcErrorHandler {
45  public:
46  virtual ~XmlRpcErrorHandler() { }
47 
49  static XmlRpcErrorHandler* getErrorHandler()
50  { return _errorHandler; }
51 
53  static void setErrorHandler(XmlRpcErrorHandler* eh)
54  { _errorHandler = eh; }
55 
57  virtual void error(const char* msg) = 0;
58 
59  protected:
60  static XmlRpcErrorHandler* _errorHandler;
61  };
62 
64  class XmlRpcLogHandler {
65  public:
66  virtual ~XmlRpcLogHandler() { }
67 
69  static XmlRpcLogHandler* getLogHandler()
70  { return _logHandler; }
71 
73  static void setLogHandler(XmlRpcLogHandler* lh)
74  { _logHandler = lh; }
75 
77  static int getVerbosity()
78  { return _verbosity; }
79 
81  static void setVerbosity(int v)
82  { _verbosity = v; }
83 
85  virtual void log(int level, const char* msg) = 0;
86 
87  protected:
88  static XmlRpcLogHandler* _logHandler;
89  static int _verbosity;
90  };
91 
93  int getVerbosity();
95  void setVerbosity(int level);
96 
97 
99  extern const char XMLRPC_VERSION[];
100 
101 } // namespace XmlRpc
102 
103 #endif // _XMLRPC_H_
XmlRpc::setVerbosity
XMLRPCPP_DECL void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
XmlRpc::XmlRpcLogHandler::~XmlRpcLogHandler
virtual ~XmlRpcLogHandler()
msg
msg
XmlRpc::getVerbosity
XMLRPCPP_DECL int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity()
XmlRpc
XmlRpc::XmlRpcLogHandler::getLogHandler
static XmlRpcLogHandler * getLogHandler()
XmlRpc::XmlRpcErrorHandler::~XmlRpcErrorHandler
virtual ~XmlRpcErrorHandler()
XmlRpc::XmlRpcErrorHandler::setErrorHandler
static void setErrorHandler(XmlRpcErrorHandler *eh)
XmlRpc::XmlRpcLogHandler::setVerbosity
static void setVerbosity(int v)
XmlRpc::XmlRpcErrorHandler::_errorHandler
static XMLRPCPP_DECL XmlRpcErrorHandler * _errorHandler
XmlRpc::XmlRpcLogHandler::setLogHandler
static void setLogHandler(XmlRpcLogHandler *lh)
XmlRpc::XmlRpcErrorHandler::error
virtual void error(const char *msg)=0
sick_scan_base.h
XmlRpc::XmlRpcLogHandler::_verbosity
static XMLRPCPP_DECL int _verbosity
XmlRpc::XMLRPC_VERSION
const XMLRPCPP_DECL char XMLRPC_VERSION[]
Version identifier.
XmlRpc::XmlRpcErrorHandler::getErrorHandler
static XmlRpcErrorHandler * getErrorHandler()
XmlRpc::XmlRpcLogHandler::_logHandler
static XMLRPCPP_DECL XmlRpcLogHandler * _logHandler
XmlRpc::XmlRpcLogHandler::log
virtual void log(int level, const char *msg)=0
XmlRpc::XmlRpcLogHandler::getVerbosity
static int getVerbosity()


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13