$search

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 94 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 125 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 161 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 140 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 107 of file XmlRpcUtil.cpp.

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

Convert encoded xml to raw text.

Definition at line 196 of file XmlRpcUtil.cpp.

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

Convert raw text to encoded xml.

Definition at line 233 of file XmlRpcUtil.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


xmlrpcpp
Author(s): Chris Morley and Konstantin Pilipchuk, slight modifications and ROS wrapping by Morgan Quigley
autogenerated on Sat Mar 2 13:22:54 2013