OverSim
XmlRpc.h
Go to the documentation of this file.
1 #ifndef _XMLRPC_H_
2 #define _XMLRPC_H_
3 //
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.
9 //
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.
14 //
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
18 //
19 // The XmlRpc++ home page is http://xmlrpcpp.sourceforge.net/
20 // My home page is http://www.vermontel.net/~cmorley/
21 //
22 
28 #if defined(_MSC_VER)
29 # pragma warning(disable:4786) // identifier was truncated in debug info
30 #endif
31 
32 #ifndef MAKEDEPEND
33 # include <string>
34 #endif
35 
36 #include "XmlRpcClient.h"
37 #include "XmlRpcException.h"
38 #include "XmlRpcServer.h"
39 #include "XmlRpcServerMethod.h"
40 #include "XmlRpcValue.h"
41 #include "XmlRpcUtil.h"
42 
43 namespace XmlRpc {
44 
45 
48  public:
49  virtual ~XmlRpcErrorHandler() {}
50 
53  { return _errorHandler; }
54 
57  { _errorHandler = eh; }
58 
60  virtual void error(const char* msg) = 0;
61 
62  protected:
64  };
65 
68  public:
69  virtual ~XmlRpcLogHandler() {};
70 
73  { return _logHandler; }
74 
77  { _logHandler = lh; }
78 
80  static int getVerbosity()
81  { return _verbosity; }
82 
84  static void setVerbosity(int v)
85  { _verbosity = v; }
86 
88  virtual void log(int level, const char* msg) = 0;
89 
90  protected:
92  static int _verbosity;
93  };
94 
96  int getVerbosity();
98  void setVerbosity(int level);
99 
100 
102  extern const char XMLRPC_VERSION[];
103 
104 } // namespace XmlRpc
105 
106 #endif // _XMLRPC_H_