BOSS 7.0.3
BESIII Offline Software System
|
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) |
static bool | nextTagIs (const char *tag, std::string const &xml, int *offset) |
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 27 of file XmlRpcUtil.h.
|
static |
Dump error messages somewhere.
Definition at line 85 of file XmlRpcUtil.cpp.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), XmlRpc::XmlRpcServer::bindAndListen(), XmlRpc::XmlRpcClient::doConnect(), XmlRpc::XmlRpcClient::handleEvent(), XmlRpc::XmlRpcClient::parseResponse(), XmlRpc::XmlRpcClient::readHeader(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), XmlRpc::XmlRpcClient::readResponse(), XmlRpc::XmlRpcDispatch::work(), XmlRpc::XmlRpcClient::writeRequest(), and XmlRpc::XmlRpcServerConnection::writeResponse().
|
static |
Returns true if the tag is found and updates offset to the char after the tag.
Definition at line 116 of file XmlRpcUtil.cpp.
Referenced by XmlRpc::XmlRpcValue::fromXml(), parseRequest(), XmlRpc::XmlRpcServerConnection::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 152 of file XmlRpcUtil.cpp.
Referenced by XmlRpc::XmlRpcValue::fromXml().
|
static |
Dump messages somewhere.
Definition at line 71 of file XmlRpcUtil.cpp.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), XmlRpc::XmlRpcServer::bindAndListen(), XmlRpc::XmlRpcClient::close(), XmlRpc::XmlRpcSource::close(), XmlRpc::XmlRpcSocket::close(), XmlRpc::XmlRpcClient::doConnect(), XmlRpc::XmlRpcClient::execute(), XmlRpc::XmlRpcServerConnection::executeRequest(), XmlRpc::XmlRpcClient::generateRequest(), XmlRpc::XmlRpcServerConnection::generateResponse(), XmlRpc::XmlRpcSocket::nbRead(), XmlRpc::XmlRpcSocket::nbWrite(), parseRequest(), XmlRpc::XmlRpcClient::readHeader(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), XmlRpc::XmlRpcClient::readResponse(), XmlRpc::XmlRpcServer::work(), XmlRpc::XmlRpcClient::writeRequest(), XmlRpc::XmlRpcServerConnection::writeResponse(), XmlRpc::XmlRpcClient::XmlRpcClient(), XmlRpc::XmlRpcServerConnection::XmlRpcServerConnection(), 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 131 of file XmlRpcUtil.cpp.
Referenced by XmlRpc::XmlRpcValue::arrayFromXml(), XmlRpc::XmlRpcValue::fromXml(), parseRequest(), XmlRpc::XmlRpcServerConnection::parseRequest(), XmlRpc::XmlRpcClient::parseResponse(), and XmlRpc::XmlRpcValue::structFromXml().
|
static |
Returns contents between <tag> and </tag>, updates offset to char after </tag>
Definition at line 98 of file XmlRpcUtil.cpp.
Referenced by parseRequest(), XmlRpc::XmlRpcServerConnection::parseRequest(), and XmlRpc::XmlRpcValue::structFromXml().
|
static |
Convert encoded xml to raw text.
Definition at line 187 of file XmlRpcUtil.cpp.
Referenced by main(), and XmlRpc::XmlRpcValue::stringFromXml().
|
static |
Convert raw text to encoded xml.
Definition at line 224 of file XmlRpcUtil.cpp.
Referenced by main(), XmlRpc::XmlRpcValue::stringToXml(), and XmlRpc::XmlRpcValue::structToXml().