本文分析FreeCAD中的串行化工具。
注1:限于研究水平,分析难免不当,欢迎批评指正。
注2:文章内容会不定期更新。
零、预修
0.1 QDataStream
0.2 Boost.Iostreams
0.3 Zipios++
0.4 Xerces-C++
一、核心组件
1.1 Base::Writer
1.2 Base::XMLReader
1.3 App::Persistence
1.4 App::Document
二、关键流程
2.1 保存文档
2.2 打开文档
网络资料
Boost.Iostreams
https://www.boost.org/doc/libs/latest/libs/iostreams/doc/index.html
Boost.Serialization
https://www.boost.org/doc/libs/latest/libs/serialization/doc/index.html
Zipios++
https://snapwebsites.org/project/zipios
Xerces-C++
https://xerces.apache.org/xerces-c/
QDataStream
https://doc.qt.io/qt-6/qdatastream.html
QTextStream
https://doc.qt.io/qt-6/qtextstream.html
QXmlStreamWriter
https://doc.qt.io/qt-6/qxmlstreamwriter.html
QXmlStreamReader
https://doc.qt.io/qt-6/qxmlstreamreader.html