cereal
A C++11 library for serialization
 All Classes Files Functions Variables Typedefs Enumerations Groups
Classes | Functions
xml.hpp File Reference

XML input and output archives. More...

#include <cereal/cereal.hpp>
#include <cereal/details/util.hpp>
#include <cereal/external/rapidxml/rapidxml.hpp>
#include <cereal/external/rapidxml/rapidxml_print.hpp>
#include <cereal/external/base64.hpp>
#include <sstream>
#include <stack>
#include <vector>
#include <string>
#include <cstring>

Go to the source code of this file.

Classes

class  cereal::XMLOutputArchive
 An output archive designed to save data to XML. More...
 
struct  cereal::XMLOutputArchive::NodeInfo
 A struct that contains metadata about a node. More...
 
class  cereal::XMLInputArchive
 An output archive designed to save data to XML. More...
 
struct  cereal::XMLInputArchive::NodeInfo
 A struct that contains metadata about a node. More...
 

Functions

template<class T >
void cereal::prologue (XMLOutputArchive &, NameValuePair< T > const &)
 Prologue for NVPs for XML output archives. More...
 
template<class T >
void cereal::prologue (XMLInputArchive &, NameValuePair< T > const &)
 Prologue for NVPs for XML input archives.
 
template<class T >
void cereal::epilogue (XMLOutputArchive &, NameValuePair< T > const &)
 Epilogue for NVPs for XML output archives. More...
 
template<class T >
void cereal::epilogue (XMLInputArchive &, NameValuePair< T > const &)
 Epilogue for NVPs for XML input archives.
 
template<class T >
void cereal::prologue (XMLOutputArchive &, SizeTag< T > const &)
 Prologue for SizeTags for XML output archives. More...
 
template<class T >
void cereal::prologue (XMLInputArchive &, SizeTag< T > const &)
 
template<class T >
void cereal::epilogue (XMLOutputArchive &, SizeTag< T > const &)
 Epilogue for SizeTags for XML output archives. More...
 
template<class T >
void cereal::epilogue (XMLInputArchive &, SizeTag< T > const &)
 
template<class T >
void cereal::prologue (XMLOutputArchive &ar, T const &)
 Prologue for all other types for XML output archives. More...
 
template<class T >
void cereal::prologue (XMLInputArchive &ar, T const &)
 Prologue for all other types for XML input archives.
 
template<class T >
void cereal::epilogue (XMLOutputArchive &ar, T const &)
 Epilogue for all other types other for XML output archives. More...
 
template<class T >
void cereal::epilogue (XMLInputArchive &ar, T const &)
 Epilogue for all other types other for XML output archives.
 
template<class T >
void cereal::save (XMLOutputArchive &ar, NameValuePair< T > const &t)
 Saving NVP types to XML.
 
template<class T >
void cereal::load (XMLInputArchive &ar, NameValuePair< T > &t)
 Loading NVP types from XML.
 
template<class T >
void cereal::save (XMLOutputArchive &, SizeTag< T > const &)
 Saving SizeTags to XML.
 
template<class T >
void cereal::load (XMLInputArchive &ar, SizeTag< T > &st)
 Loading SizeTags from XML.
 
template<class T >
std::enable_if
< std::is_arithmetic< T >
::value, void >::type 
cereal::save (XMLOutputArchive &ar, T const &t)
 Saving for POD types to xml.
 
template<class T >
std::enable_if
< std::is_arithmetic< T >
::value, void >::type 
cereal::load (XMLInputArchive &ar, T &t)
 Loading for POD types from xml.
 
template<class CharT , class Traits , class Alloc >
void cereal::save (XMLOutputArchive &ar, std::basic_string< CharT, Traits, Alloc > const &str)
 saving string to xml
 
template<class CharT , class Traits , class Alloc >
void cereal::load (XMLInputArchive &ar, std::basic_string< CharT, Traits, Alloc > &str)
 loading string from xml
 
 CEREAL_REGISTER_ARCHIVE (cereal::XMLOutputArchive)
 
 CEREAL_REGISTER_ARCHIVE (cereal::XMLInputArchive)
 

Detailed Description

XML input and output archives.