OverSim
|
Utilities for XML parsing, encoding, and decoding and message handlers. More...
#include <XmlRpcUtil.h>
Static Public Member Functions | |
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 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) |
Returns the next tag and updates offset to the char after the tag, or empty string if the next non-whitespace character is not '<'. | |
static bool | nextTagIs (const char *tag, std::string const &xml, int *offset) |
Returns true if the tag is found at the specified offset (modulo any whitespace) and updates offset to the char after the tag. | |
static std::string | xmlEncode (const std::string &raw) |
Convert raw text to encoded xml. | |
static std::string | xmlDecode (const std::string &encoded) |
Convert encoded xml to raw text. | |
static void | log (int level, const char *fmt,...) |
Dump messages somewhere. | |
static void | error (const char *fmt,...) |
Dump error messages somewhere. |
Utilities for XML parsing, encoding, and decoding and message handlers.
Definition at line 33 of file XmlRpcUtil.h.
|
static |
Dump error messages somewhere.
Definition at line 90 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpcInterface::readHeader(), XmlRpcInterface::readRequest(), and XmlRpcInterface::writeResponse().
|
static |
Returns true if the tag is found and updates offset to the char after the tag.
Definition at line 121 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcValue::fromXml(), XmlRpc::XmlRpcServer::parseRequest(), and XmlRpc::XmlRpcClient::parseResponse().
|
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 158 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcValue::fromXml().
|
static |
Dump messages somewhere.
Definition at line 76 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), XmlRpc::XmlRpcServer::bindAndListen(), XmlRpc::XmlRpcSocket::close(), XmlRpc::XmlRpcSource::close(), XmlRpc::XmlRpcClient::close(), XmlRpc::XmlRpcClient::doConnect(), XmlRpc::XmlRpcClient::execute(), XmlRpc::XmlRpcServer::executeRequest(), XmlRpc::XmlRpcClient::generateRequest(), XmlRpc::XmlRpcServer::generateResponse(), XmlRpc::XmlRpcSocket::nbRead(), XmlRpc::XmlRpcSocket::nbWrite(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpcInterface::readHeader(), XmlRpc::XmlRpcClient::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), XmlRpcInterface::readRequest(), XmlRpc::XmlRpcClient::readResponse(), XmlRpc::XmlRpcServer::work(), XmlRpc::XmlRpcClient::writeRequest(), XmlRpc::XmlRpcServerConnection::writeResponse(), XmlRpcInterface::writeResponse(), XmlRpc::XmlRpcClient::XmlRpcClient(), XmlRpc::XmlRpcServerConnection::XmlRpcServerConnection(), XmlRpc::XmlRpcClient::~XmlRpcClient(), and XmlRpc::XmlRpcServerConnection::~XmlRpcServerConnection().
|
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 136 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcValue::arrayFromXml(), XmlRpc::XmlRpcValue::fromXml(), XmlRpc::XmlRpcServer::parseRequest(), XmlRpc::XmlRpcClient::parseResponse(), and XmlRpc::XmlRpcValue::structFromXml().
|
static |
Returns contents between <tag> and </tag>, updates offset to char after </tag>
Definition at line 103 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcServer::parseRequest(), and XmlRpc::XmlRpcValue::structFromXml().
|
static |
Convert encoded xml to raw text.
Definition at line 201 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcValue::stringFromXml().
|
static |
Convert raw text to encoded xml.
Definition at line 238 of file XmlRpcUtil.cc.
Referenced by XmlRpc::XmlRpcValue::stringToXml(), and XmlRpc::XmlRpcValue::structToXml().