XmlRpc.h
Go to the documentation of this file.
1 // this file modified by Morgan Quigley on 22 April 2008 to add
2 // a std::exception-derived class
3 #ifndef _XMLRPC_H_
4 #define _XMLRPC_H_
5 //
6 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 //
21 
22 #if defined(_MSC_VER)
23 # pragma warning(disable:4786) // identifier was truncated in debug info
24 #endif
25 
26 #ifndef MAKEDEPEND
27 # include <string>
28 #endif
29 
30 #include "xmlrpcpp/XmlRpcClient.h"
32 #include "xmlrpcpp/XmlRpcServer.h"
34 #include "xmlrpcpp/XmlRpcValue.h"
35 #include "xmlrpcpp/XmlRpcUtil.h"
36 
37 #include <stdexcept>
38 
39 namespace XmlRpc {
40 
41 
44  public:
45  virtual ~XmlRpcErrorHandler() { }
46 
49  { return _errorHandler; }
50 
53  { _errorHandler = eh; }
54 
56  virtual void error(const char* msg) = 0;
57 
58  protected:
60  };
61 
64  public:
65  virtual ~XmlRpcLogHandler() { }
66 
69  { return _logHandler; }
70 
73  { _logHandler = lh; }
74 
76  static int getVerbosity()
77  { return _verbosity; }
78 
80  static void setVerbosity(int v)
81  { _verbosity = v; }
82 
84  virtual void log(int level, const char* msg) = 0;
85 
86  protected:
88  static int _verbosity;
89  };
90 
92  int getVerbosity();
94  void setVerbosity(int level);
95 
96 
98  extern const char XMLRPC_VERSION[];
99 
100 } // namespace XmlRpc
101 
102 #endif // _XMLRPC_H_
virtual ~XmlRpcLogHandler()
Definition: XmlRpc.h:65
static XmlRpcLogHandler * getLogHandler()
Returns a pointer to the currently installed message reporting object.
Definition: XmlRpc.h:68
Definition: XmlRpc.h:39
static void setLogHandler(XmlRpcLogHandler *lh)
Specifies the message handler.
Definition: XmlRpc.h:72
const char XMLRPC_VERSION[]
Version identifier.
Definition: XmlRpcUtil.cpp:24
static int _verbosity
Definition: XmlRpc.h:88
static XmlRpcErrorHandler * _errorHandler
Definition: XmlRpc.h:59
static int getVerbosity()
Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose...
Definition: XmlRpc.h:76
static void setVerbosity(int v)
Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose...
Definition: XmlRpc.h:80
static XmlRpcErrorHandler * getErrorHandler()
Returns a pointer to the currently installed error handling object.
Definition: XmlRpc.h:48
virtual void error(const char *msg)=0
Report an error. Custom error handlers should define this method.
int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity() ...
Definition: XmlRpcUtil.cpp:75
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level) ...
Definition: XmlRpcUtil.cpp:76
An interface allowing custom handling of informational message reporting.
Definition: XmlRpc.h:63
static XmlRpcLogHandler * _logHandler
Definition: XmlRpc.h:87
virtual ~XmlRpcErrorHandler()
Definition: XmlRpc.h:45
static void setErrorHandler(XmlRpcErrorHandler *eh)
Specifies the error handler.
Definition: XmlRpc.h:52
An interface allowing custom handling of error message reporting.
Definition: XmlRpc.h:43


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Fri Jun 8 2018 02:54:32