Definition in file XML_RPCSerialization.h.
#include "m_net.h"
#include <string>
#include <sstream>
#include <iostream>
#include <typeinfo>
#include <ctype.h>
#include "Exception.h"
#include "massert.h"
#include "Serializable.h"
#include "mstring.h"
Go to the source code of this file.
Namespaces | |
namespace | mace |
Functions | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const void *pitem, const S &item) throw (SerializationException) |
void* method for serialization, serialize first into a string, then use string serialization | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const std::string *pitem, const S &item) throw (SerializationException) |
string serialization in a string tag, encoding entities, or base64 encoding for non-printable characters | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const Serializable *pitem, const S &item) throw (SerializationException) |
handle serialization for objects which can serialize themselves | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const int *pitem, const S &item) |
4 byte integer serialization using i4 | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const bool *pitem, const S &item) |
boolean serialization using boolean tag | |
template<typename S> | |
void | mace::serializeXML_RPC (std::string &str, const double *pitem, const S &item) |
double serialization using double tag | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, void *pitem, S &item) throw (SerializationException) |
void deserialization using string itermediate | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, Serializable *pitem, S &item) throw (SerializationException) |
deserialize objects which know how to deserialize themselves | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, std::string *pitem, S &item) throw (SerializationException) |
handle string deserialization (see serializeXML_RPC(std::istream&, const std::string*, const S&) | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, int *pitem, S &item) throw (SerializationException) |
4 byte integer deserialization using i4 tag or int tag | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, bool *pitem, S &item) throw (SerializationException) |
boolean deserialization using boolean tag | |
template<typename S> | |
int | mace::deserializeXML_RPC (std::istream &in, double *pitem, S &item) throw (SerializationException) |
double deserialization using double tag | |
template<typename S> | |
int | mace::deserializeXML_RPCParam (std::istream &in, S *pitem, S &item) throw (SerializationException) |
deserialization for a parameter (param and value tags) | |
template<typename S> | |
std::string | mace::serializeXML_RPC (const S *pitem, const S &item) throw (SerializationException) |
serialize arbitrary object and return a string | |
template<typename S> | |
int | mace::deserializeXML_RPCStr (const std::string &str, void *pitem, S &item) throw (SerializationException) |
deserialize an arbitrary object from a string rather than an istream |