/usr/include/boost/archive/impl
NameSizeModeActions
archive_serializer_map.ipp23470644editdlrm
basic_binary_iarchive.ipp43620644editdlrm
basic_binary_iprimitive.ipp50970644editdlrm
basic_binary_oarchive.ipp13040644editdlrm
basic_binary_oprimitive.ipp37350644editdlrm
basic_text_iarchive.ipp25350644editdlrm
basic_text_iprimitive.ipp35100644editdlrm
basic_text_oarchive.ipp16750644editdlrm
basic_text_oprimitive.ipp29610644editdlrm
basic_xml_grammar.hpp51410644editdlrm
basic_xml_iarchive.ipp35530644editdlrm
basic_xml_oarchive.ipp76730644editdlrm
text_iarchive_impl.ipp30950644editdlrm
text_oarchive_impl.ipp28840644editdlrm
text_wiarchive_impl.ipp28020644editdlrm
text_woarchive_impl.ipp21550644editdlrm
xml_iarchive_impl.ipp57130644editdlrm
xml_oarchive_impl.ipp40640644editdlrm
xml_wiarchive_impl.ipp52450644editdlrm
xml_woarchive_impl.ipp46470644editdlrm
Edit: /usr/include/boost/archive/impl/basic_xml_iarchive.ipp (3553B)
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_xml_iarchive.ipp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org for updates, documentation, and revision history. #include #include // NULL #include #include #include #include #include namespace boost { namespace archive { /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // implementation of xml_text_archive template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_start(const char *name){ // if there's no name if(NULL == name) return; bool result = this->This()->gimpl->parse_start_tag(this->This()->get_is()); if(true != result){ boost::serialization::throw_exception( archive_exception(archive_exception::input_stream_error) ); } // don't check start tag at highest level ++depth; } template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_end(const char *name){ // if there's no name if(NULL == name) return; bool result = this->This()->gimpl->parse_end_tag(this->This()->get_is()); if(true != result){ boost::serialization::throw_exception( archive_exception(archive_exception::input_stream_error) ); } // don't check start tag at highest level if(0 == --depth) return; if(0 == (this->get_flags() & no_xml_tag_checking)){ // double check that the tag matches what is expected - useful for debug if(0 != name[this->This()->gimpl->rv.object_name.size()] || ! std::equal( this->This()->gimpl->rv.object_name.begin(), this->This()->gimpl->rv.object_name.end(), name ) ){ boost::serialization::throw_exception( xml_archive_exception( xml_archive_exception::xml_archive_tag_mismatch, name ) ); } } } template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_override(object_id_type & t){ t = object_id_type(this->This()->gimpl->rv.object_id); } template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_override(version_type & t){ t = version_type(this->This()->gimpl->rv.version); } template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_override(class_id_type & t){ t = class_id_type(this->This()->gimpl->rv.class_id); } template BOOST_ARCHIVE_OR_WARCHIVE_DECL void basic_xml_iarchive::load_override(tracking_type & t){ t = this->This()->gimpl->rv.tracking_level; } template BOOST_ARCHIVE_OR_WARCHIVE_DECL basic_xml_iarchive::basic_xml_iarchive(unsigned int flags) : detail::common_iarchive(flags), depth(0) {} template BOOST_ARCHIVE_OR_WARCHIVE_DECL basic_xml_iarchive::~basic_xml_iarchive(){ } } // namespace archive } // namespace boost