x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
polymorphic_oarchive.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\archive\polymorphic_oarchive.hpp
旋转
特效
属性
历史版本
#ifndef BOOST_ARCHIVE_POLYMORPHIC_OARCHIVE_HPP #define BOOST_ARCHIVE_POLYMORPHIC_OARCHIVE_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_oarchive.hpp // (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
// size_t #include
#include
#if defined(BOOST_NO_STDC_NAMESPACE) namespace std{ using ::size_t; } // namespace std #endif #include
#include
#include
#include
#include
#include
// determine if its necessary to handle (u)int64_t specifically // i.e. that its not a synonym for (unsigned) long // if there is no 64 bit int or if its the same as a long // we shouldn't define separate functions for int64 data types. #if defined(BOOST_NO_INT64_T) \ || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1 # define BOOST_NO_INTRINSIC_INT64_T #endif namespace boost { template
class shared_ptr; namespace serialization { class extended_type_info; } // namespace serialization namespace archive { namespace detail { class basic_oarchive; class basic_oserializer; } class polymorphic_oarchive; class polymorphic_oarchive_impl : public detail::interface_oarchive
{ #ifdef BOOST_NO_MEMBER_TEMPLATE_FRIENDS public: #else friend class detail::interface_oarchive
; friend class save_access; #endif // primitive types the only ones permitted by polymorphic archives virtual void save(const bool t) = 0; virtual void save(const char t) = 0; virtual void save(const signed char t) = 0; virtual void save(const unsigned char t) = 0; #ifndef BOOST_NO_CWCHAR #ifndef BOOST_NO_INTRINSIC_WCHAR_T virtual void save(const wchar_t t) = 0; #endif #endif virtual void save(const short t) = 0; virtual void save(const unsigned short t) = 0; virtual void save(const int t) = 0; virtual void save(const unsigned int t) = 0; virtual void save(const long t) = 0; virtual void save(const unsigned long t) = 0; #if !defined(BOOST_NO_INTRINSIC_INT64_T) virtual void save(const boost::int64_t t) = 0; virtual void save(const boost::uint64_t t) = 0; #endif virtual void save(const float t) = 0; virtual void save(const double t) = 0; // string types are treated as primitives virtual void save(const std::string & t) = 0; #ifndef BOOST_NO_STD_WSTRING virtual void save(const std::wstring & t) = 0; #endif virtual void save_null_pointer() = 0; // used for xml and other tagged formats virtual void save_start(const char * name) = 0; virtual void save_end(const char * name) = 0; virtual void register_basic_serializer(const detail::basic_oserializer & bos) = 0; virtual void end_preamble() = 0; // msvc and borland won't automatically pass these to the base class so // make it explicit here template
void save_override(T & t, BOOST_PFTO int) { archive::save(* this->This(), t); } // special treatment for name-value pairs. template
void save_override( #ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING const #endif ::boost::serialization::nvp
& t, int ){ save_start(t.name()); archive::save(* this->This(), t.const_value()); save_end(t.name()); } protected: virtual ~polymorphic_oarchive_impl(){} public: // utility functions implemented by all legal archives virtual unsigned int get_flags() const = 0; virtual unsigned int get_library_version() const = 0; virtual void save_binary(const void * t, std::size_t size) = 0; virtual void save_object( const void *x, const detail::basic_oserializer & bos ) = 0; virtual void save_pointer( const void * t, const detail::basic_pointer_oserializer * bpos_ptr ) = 0; }; // note: preserve naming symmetry class polymorphic_oarchive : public polymorphic_oarchive_impl {}; } // namespace archive } // namespace boost // required by export BOOST_SERIALIZATION_REGISTER_ARCHIVE(boost::archive::polymorphic_oarchive) #endif // BOOST_ARCHIVE_POLYMORPHIC_OARCHIVE_HPP
polymorphic_oarchive.hpp
网页地址
文件地址
上一页
27/46
下一页
下载
( 4 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.