BOSS 8.0.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 "XmlRpcUtil.h"
33#include "XmlRpcValue.h"
34
35namespace XmlRpc {
36
37 //! An interface allowing custom handling of error message reporting.
39 public:
40 //! Returns a pointer to the currently installed error handling object.
42
43 //! Specifies the error handler.
45
46 //! Report an error. Custom error handlers should define this method.
47 virtual void error( const char* msg ) = 0;
48
49 protected:
51 };
52
53 //! An interface allowing custom handling of informational message reporting.
55 public:
56 //! Returns a pointer to the currently installed message reporting object.
58
59 //! Specifies the message handler.
60 static void setLogHandler( XmlRpcLogHandler* lh ) { _logHandler = lh; }
61
62 //! Returns the level of verbosity of informational messages. 0 is no output, 5 is very
63 //! verbose.
64 static int getVerbosity() { return _verbosity; }
65
66 //! Specify the level of verbosity of informational messages. 0 is no output, 5 is very
67 //! verbose.
68 static void setVerbosity( int v ) { _verbosity = v; }
69
70 //! Output a message. Custom error handlers should define this method.
71 virtual void log( int level, const char* msg ) = 0;
72
73 protected:
75 static int _verbosity;
76 };
77
78 //! Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity()
79 int getVerbosity();
80 //! Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
81 void setVerbosity( int level );
82
83 //! Version identifier
84 extern const char XMLRPC_VERSION[];
85
86} // namespace XmlRpc
87
88#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:38
static void setErrorHandler(XmlRpcErrorHandler *eh)
Specifies the error handler.
Definition XmlRpc.h:44
static XmlRpcErrorHandler * getErrorHandler()
Returns a pointer to the currently installed error handling object.
Definition XmlRpc.h:41
virtual void error(const char *msg)=0
Report an error. Custom error handlers should define this method.
static XmlRpcErrorHandler * _errorHandler
Definition XmlRpc.h:50
An interface allowing custom handling of informational message reporting.
Definition XmlRpc.h:54
static int _verbosity
Definition XmlRpc.h:75
static XmlRpcLogHandler * getLogHandler()
Returns a pointer to the currently installed message reporting object.
Definition XmlRpc.h:57
virtual void log(int level, const char *msg)=0
Output a message. Custom error handlers should define this method.
static int getVerbosity()
Definition XmlRpc.h:64
static void setLogHandler(XmlRpcLogHandler *lh)
Specifies the message handler.
Definition XmlRpc.h:60
static void setVerbosity(int v)
Definition XmlRpc.h:68
static XmlRpcLogHandler * _logHandler
Definition XmlRpc.h:74
int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity().
const char XMLRPC_VERSION[]
Version identifier.
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level).