7 # pragma warning(disable:4786) // identifier was truncated in debug info 17 # define strcasecmp _stricmp 18 # define strncasecmp _strnicmp 19 #elif defined(__BORLANDC__) 20 # define strcasecmp stricmp 21 # define strncasecmp strnicmp 40 virtual void error(
const char* msg) = 0;
53 {
return _logHandler; }
61 {
return _verbosity; }
68 virtual void log(
int level,
const char* msg) = 0;
90 static std::string parseTag(
const char* tag, std::string
const& xml,
int* offset);
93 static bool findTag(
const char* tag, std::string
const& xml,
int* offset);
97 static std::string getNextTag(std::string
const& xml,
int* offset);
101 static bool nextTagIs(
const char* tag, std::string
const& xml,
int* offset);
105 static std::string nextTagData(
const char* tag, std::string
const& xml,
int* offset);
108 static std::string xmlEncode(
const std::string& raw);
111 static std::string xmlDecode(
const std::string& encoded);
115 static void log(
int level,
const char* fmt, ...);
118 static void error(
const char* fmt, ...);
123 #endif // _XMLRPCUTIL_H_ virtual ~XmlRpcLogHandler()
static XmlRpcLogHandler * getLogHandler()
Returns a pointer to the currently installed message reporting object.
static void setLogHandler(XmlRpcLogHandler *lh)
Specifies the message handler.
XMLRPCPP_DECL const char XMLRPC_VERSION[]
Version identifier.
static XMLRPCPP_DECL int _verbosity
static XMLRPCPP_DECL XmlRpcErrorHandler * _errorHandler
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 XmlRpcErrorHandler * getErrorHandler()
Returns a pointer to the currently installed error handling object.
Utilities for XML parsing, encoding, and decoding and message handlers.
virtual void error(const char *msg)=0
Report an error. Custom error handlers should define this method.
XMLRPCPP_DECL int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity() ...
XMLRPCPP_DECL void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level) ...
An interface allowing custom handling of informational message reporting.
static XMLRPCPP_DECL XmlRpcLogHandler * _logHandler
virtual ~XmlRpcErrorHandler()
static void setErrorHandler(XmlRpcErrorHandler *eh)
Specifies the error handler.
An interface allowing custom handling of error message reporting.