BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
XmlRpc::XmlRpcLogHandler Class Referenceabstract

An interface allowing custom handling of informational message reporting. More...

#include <XmlRpc.h>

Inherited by DefaultLogHandler.

Public Member Functions

virtual void log (int level, const char *msg)=0
 Output a message. Custom error handlers should define this method.
 

Static Public Member Functions

static XmlRpcLogHandlergetLogHandler ()
 Returns a pointer to the currently installed message reporting object.
 
static void setLogHandler (XmlRpcLogHandler *lh)
 Specifies the message handler.
 
static int getVerbosity ()
 Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
 
static void setVerbosity (int v)
 Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
 

Static Protected Attributes

static XmlRpcLogHandler_logHandler = &defaultLogHandler
 
static int _verbosity = 0
 

Detailed Description

An interface allowing custom handling of informational message reporting.

Definition at line 57 of file XmlRpc.h.

Member Function Documentation

◆ getLogHandler()

static XmlRpcLogHandler * XmlRpc::XmlRpcLogHandler::getLogHandler ( )
inlinestatic

Returns a pointer to the currently installed message reporting object.

Definition at line 60 of file XmlRpc.h.

61 { return _logHandler; }
static XmlRpcLogHandler * _logHandler
Definition: XmlRpc.h:79

Referenced by XmlRpc::XmlRpcUtil::log().

◆ getVerbosity()

static int XmlRpc::XmlRpcLogHandler::getVerbosity ( )
inlinestatic

Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.

Definition at line 68 of file XmlRpc.h.

69 { return _verbosity; }
static int _verbosity
Definition: XmlRpc.h:80

Referenced by XmlRpc::getVerbosity(), and XmlRpc::XmlRpcUtil::log().

◆ log()

virtual void XmlRpc::XmlRpcLogHandler::log ( int  level,
const char *  msg 
)
pure virtual

Output a message. Custom error handlers should define this method.

Referenced by XmlRpc::XmlRpcUtil::log().

◆ setLogHandler()

static void XmlRpc::XmlRpcLogHandler::setLogHandler ( XmlRpcLogHandler lh)
inlinestatic

Specifies the message handler.

Definition at line 64 of file XmlRpc.h.

65 { _logHandler = lh; }

◆ setVerbosity()

static void XmlRpc::XmlRpcLogHandler::setVerbosity ( int  v)
inlinestatic

Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.

Definition at line 72 of file XmlRpc.h.

73 { _verbosity = v; }
**********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

Referenced by XmlRpc::setVerbosity().

Member Data Documentation

◆ _logHandler

XmlRpcLogHandler * XmlRpcLogHandler::_logHandler = &defaultLogHandler
staticprotected

Definition at line 79 of file XmlRpc.h.

Referenced by getLogHandler(), and setLogHandler().

◆ _verbosity

int XmlRpcLogHandler::_verbosity = 0
staticprotected

Definition at line 80 of file XmlRpc.h.

Referenced by getVerbosity(), and setVerbosity().


The documentation for this class was generated from the following files: