FreeCAD源码分析: 串行化工具
本文分析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.Iostreamshttps://www.boost.org/doc/libs/latest/libs/iostreams/doc/index.html
Boost.Serializationhttps://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/
QDataStreamhttps://doc.qt.io/qt-6/qdatastream.html
QTextStreamhttps://doc.qt.io/qt-6/qtextstream.html
QXmlStreamWriterhttps://doc.qt.io/qt-6/qxmlstreamwriter.html
QXmlStreamReaderhttps://doc.qt.io/qt-6/qxmlstreamreader.html