Go to the documentation of this file. 24 #ifndef BOOSTSERIALIZATIONTOSTRING_HPP 25 #define BOOSTSERIALIZATIONTOSTRING_HPP 27 #include <boost/serialization/nvp.hpp> 28 #include <boost/archive/text_oarchive.hpp> 29 #include <boost/archive/text_iarchive.hpp> 30 #include <boost/archive/xml_oarchive.hpp> 31 #include <boost/archive/xml_iarchive.hpp> 36 #define RETURN_STRING_FROM_BOOST_SERIALIZATION_XML(name) \ 37 std::stringstream strstr; \ 38 unsigned int flags = boost::archive::no_header; \ 39 boost::archive::xml_oarchive oa(strstr,flags); \ 40 oa << boost::serialization::make_nvp(name, *this); \ 46 #define RETURN_STRING_FROM_BOOST_SERIALIZATION_TXT(name) \ 47 std::stringstream strstr; \ 48 unsigned int flags = boost::archive::no_header; \ 49 boost::archive::txt_oarchive oa(strstr,flags); \ 50 oa << boost::serialization::make_nvp(name, *this); \ 53 #endif // #ifndef BOOSTSERIALIZATIONTOSTRING_HPP