BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
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
20#if defined(_MSC_VER)
21# pragma warning(disable:4786) // identifier was truncated in debug info
22#endif
23
24#ifndef MAKEDEPEND
25# include <string>
26#endif
27
28#include "XmlRpcClient.h"
29#include "XmlRpcException.h"
30#include "XmlRpcServer.h"
31#include "XmlRpcServerMethod.h"
32#include "XmlRpcValue.h"
33#include "XmlRpcUtil.h"
34
35namespace XmlRpc {
36
37
38 //! An interface allowing custom handling of error message reporting.
40 public:
41 //! Returns a pointer to the currently installed error handling object.
43 { return _errorHandler; }
44
45 //! Specifies the error handler.
47 { _errorHandler = eh; }
48
49 //! Report an error. Custom error handlers should define this method.
50 virtual void error(const char* msg) = 0;
51
52 protected:
54 };
55
56 //! An interface allowing custom handling of informational message reporting.
58 public:
59 //! Returns a pointer to the currently installed message reporting object.
61 { return _logHandler; }
62
63 //! Specifies the message handler.
65 { _logHandler = lh; }
66
67 //! Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
68 static int getVerbosity()
69 { return _verbosity; }
70
71 //! Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
72 static void setVerbosity(int v)
73 { _verbosity = v; }
74
75 //! Output a message. Custom error handlers should define this method.
76 virtual void log(int level, const char* msg) = 0;
77
78 protected:
80 static int _verbosity;
81 };
82
83 //! Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity()
84 int getVerbosity();
85 //! Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
86 void setVerbosity(int level);
87
88
89 //! Version identifier
90 extern const char XMLRPC_VERSION[];
91
92} // namespace XmlRpc
93
94#endif // _XMLRPC_H_
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
An interface allowing custom handling of error message reporting.
Definition: XmlRpc.h:39
static void setErrorHandler(XmlRpcErrorHandler *eh)
Specifies the error handler.
Definition: XmlRpc.h:46
static XmlRpcErrorHandler * getErrorHandler()
Returns a pointer to the currently installed error handling object.
Definition: XmlRpc.h:42
virtual void error(const char *msg)=0
Report an error. Custom error handlers should define this method.
static XmlRpcErrorHandler * _errorHandler
Definition: XmlRpc.h:53
An interface allowing custom handling of informational message reporting.
Definition: XmlRpc.h:57
static int _verbosity
Definition: XmlRpc.h:80
static XmlRpcLogHandler * getLogHandler()
Returns a pointer to the currently installed message reporting object.
Definition: XmlRpc.h:60
virtual void log(int level, const char *msg)=0
Output a message. Custom error handlers should define this method.
static int getVerbosity()
Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
Definition: XmlRpc.h:68
static void setLogHandler(XmlRpcLogHandler *lh)
Specifies the message handler.
Definition: XmlRpc.h:64
static void setVerbosity(int v)
Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
Definition: XmlRpc.h:72
static XmlRpcLogHandler * _logHandler
Definition: XmlRpc.h:79
Definition: XmlRpc.h:35
int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity()
Definition: XmlRpcUtil.cpp:66
const char XMLRPC_VERSION[]
Version identifier.
Definition: XmlRpcUtil.cpp:24
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
Definition: XmlRpcUtil.cpp:67