4
// XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
5
// This library is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation; either
8
// version 2.1 of the License, or (at your option) any later version.
10
// This library is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Lesser General Public License for more details.
15
// You should have received a copy of the GNU Lesser General Public
16
// License along with this library; if not, write to the Free Software
17
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21
# pragma warning(disable:4786) // identifier was truncated in debug info
28
#include "XmlRpcClient.h"
29
#include "XmlRpcException.h"
30
#include "XmlRpcServer.h"
31
#include "XmlRpcServerMethod.h"
32
#include "XmlRpcValue.h"
33
#include "XmlRpcUtil.h"
38
//! An interface allowing custom handling of error message reporting.
39
class XmlRpcErrorHandler {
41
//! Returns a pointer to the currently installed error handling object.
42
static XmlRpcErrorHandler* getErrorHandler()
43
{ return _errorHandler; }
45
//! Specifies the error handler.
46
static void setErrorHandler(XmlRpcErrorHandler* eh)
47
{ _errorHandler = eh; }
49
//! Report an error. Custom error handlers should define this method.
50
virtual void error(const char* msg) = 0;
53
static XmlRpcErrorHandler* _errorHandler;
56
//! An interface allowing custom handling of informational message reporting.
57
class XmlRpcLogHandler {
59
//! Returns a pointer to the currently installed message reporting object.
60
static XmlRpcLogHandler* getLogHandler()
61
{ return _logHandler; }
63
//! Specifies the message handler.
64
static void setLogHandler(XmlRpcLogHandler* lh)
67
//! Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
68
static int getVerbosity()
69
{ return _verbosity; }
71
//! Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
72
static void setVerbosity(int v)
75
//! Output a message. Custom error handlers should define this method.
76
virtual void log(int level, const char* msg) = 0;
79
static XmlRpcLogHandler* _logHandler;
80
static int _verbosity;
83
//! Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity()
85
//! Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
86
void setVerbosity(int level);
89
//! Version identifier
90
extern const char XMLRPC_VERSION[];