Static Public Member Functions
XmlRpc::XmlRpcUtil Class Reference

Utilities for XML parsing, encoding, and decoding and message handlers. More...

#include <XmlRpcUtil.h>

List of all members.

Static Public Member Functions

static void error (const char *fmt,...)
 Dump error messages somewhere.
static bool findTag (const char *tag, std::string const &xml, int *offset)
 Returns true if the tag is found and updates offset to the char after the tag.
static std::string getNextTag (std::string const &xml, int *offset)
static void log (int level, const char *fmt,...)
 Dump messages somewhere.
static bool nextTagIs (const char *tag, std::string const &xml, int *offset)
static std::string parseTag (const char *tag, std::string const &xml, int *offset)
 Returns contents between <tag> and </tag>, updates offset to char after </tag>
static std::string xmlDecode (const std::string &encoded)
 Convert encoded xml to raw text.
static std::string xmlEncode (const std::string &raw)
 Convert raw text to encoded xml.

Detailed Description

Utilities for XML parsing, encoding, and decoding and message handlers.

Definition at line 29 of file XmlRpcUtil.h.


Member Function Documentation

void XmlRpcUtil::error ( const char *  fmt,
  ... 
) [static]

Dump error messages somewhere.

Definition at line 95 of file XmlRpcUtil.cpp.

bool XmlRpcUtil::findTag ( const char *  tag,
std::string const &  xml,
int *  offset 
) [static]

Returns true if the tag is found and updates offset to the char after the tag.

Definition at line 127 of file XmlRpcUtil.cpp.

std::string XmlRpcUtil::getNextTag ( std::string const &  xml,
int *  offset 
) [static]

Returns the next tag and updates offset to the char after the tag, or empty string if the next non-whitespace character is not '<'

Definition at line 163 of file XmlRpcUtil.cpp.

void XmlRpcUtil::log ( int  level,
const char *  fmt,
  ... 
) [static]

Dump messages somewhere.

Definition at line 80 of file XmlRpcUtil.cpp.

bool XmlRpcUtil::nextTagIs ( const char *  tag,
std::string const &  xml,
int *  offset 
) [static]

Returns true if the tag is found at the specified offset (modulo any whitespace) and updates offset to the char after the tag

Definition at line 142 of file XmlRpcUtil.cpp.

std::string XmlRpcUtil::parseTag ( const char *  tag,
std::string const &  xml,
int *  offset 
) [static]

Returns contents between <tag> and </tag>, updates offset to char after </tag>

Definition at line 109 of file XmlRpcUtil.cpp.

std::string XmlRpcUtil::xmlDecode ( const std::string &  encoded) [static]

Convert encoded xml to raw text.

Definition at line 198 of file XmlRpcUtil.cpp.

std::string XmlRpcUtil::xmlEncode ( const std::string &  raw) [static]

Convert raw text to encoded xml.

Definition at line 235 of file XmlRpcUtil.cpp.


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


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Thu Jun 6 2019 21:10:00