7 # pragma warning(disable:4786) // identifier was truncated in debug info 17 # define snprintf _snprintf_s 18 # define vsnprintf _vsnprintf_s 19 # define strcasecmp _stricmp 20 # define strncasecmp _strnicmp 21 #elif defined(__BORLANDC__) 22 # define strcasecmp stricmp 23 # define strncasecmp strnicmp 42 virtual void error(
const char* msg) = 0;
55 {
return _logHandler; }
63 {
return _verbosity; }
70 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 xmlEncode(
const std::string& raw);
108 static std::string xmlDecode(
const std::string& encoded);
112 static void log(
int level,
const char* fmt, ...);
115 static void error(
const char* fmt, ...);
120 #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.
const char XMLRPC_VERSION[]
Version identifier.
static 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.
int getVerbosity()
Returns log message verbosity. This is short for XmlRpcLogHandler::getVerbosity() ...
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 XmlRpcLogHandler * _logHandler
virtual ~XmlRpcErrorHandler()
static void setErrorHandler(XmlRpcErrorHandler *eh)
Specifies the error handler.
An interface allowing custom handling of error message reporting.