推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

一种提高代码复用的C++序列化框架设计

更新时间:2020-11-22 00:12:00 大小:1M 上传用户:gsy幸运查看TA发布的资源 标签:C++ 下载积分:2分 评价赚积分 (如何评价?) 收藏 评论(0) 举报

资料介绍

序列化在各类软件中应用非常普遍。在实际工程应用中可能出现XML、二进制和数据库的序列化操作,由于ANSIC++不支持序列化操作、硬编码通常产生大量重复代码,本文设计了一套支持XML、二进制和数据库序列化的C++框架。该框架引入了MessageObject、Serializer、Stream三个概念,并提出利用C++宏来屏蔽重复实现的细节。该框架在实际工程应用中大大减少了代码量,提高了代码的复用。

Serialize is implemented in lots of softwares.XML serialize,binary serialize and database serialize may be used in real projects.Because the ANSI C++ don’t support the serialize operation,so the hard coding is indescribably complex.In the paper,a serialize framework is designed to surpport the XML,binary and database serialize.The three concepts are introduced such as MessageObject,Serializer,Stream,and take advantage of the macro of C++ to hide the detail.The framework decrease lots of codes in project,and increase the reusable of codes.

部分文件列表

文件名 大小
一种提高代码复用的C++序列化框架设计.pdf 1M

全部评论(0)

暂无评论