Create a new file type

I was assigned a project to create a new binary file structure for storing coordinating information coming out of 3D CAD / CAM software. I would really appreciate it if you kindly noted some articles or books about creating a new binary file format. Thank you for your time:)

+3
source share
5 answers

There is a universal binary (and compact) notation called ASN.1. It has been widely used, and there are books about it. ASN.1 can be compared to XML, but at a lower (more primitive but more flexible) level than XML. And XML, especially the binary XML mentioned above, would also help you a lot. Also, if your file contains no more than one sequence of data, see Solid File System as a container for multiple data streams in a single file.

+1
source

I would start by looking at other similar file formats on wotsit.org . The site is designed for various file formats and contains links to their specifications.

, , .

+3

, - , . OBJ, - , , .

+1

: . XML , .

: CAD/CAM "" . (, , ). , XML , Binary XML.

+1

I think that you really need to figure out what data you need to save. Then you load it into memory and serialize that memory

Here is a tutorial on serialization in C ++ . This page also addresses many of the problems with saving data.

0
source

Source: https://habr.com/ru/post/1753193/


All Articles