是否有一个开源的替代Windows复合文件? [英] Is there an open-source alternative to Windows compound files?

查看:226
本文介绍了是否有一个开源的替代Windows复合文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将几个文件保存到容器文件。文件可以稍后修改,这意味着容器可能需要放大。用户应该只看到此容器作为文件系统中的单个文件。应用程序是用C ++编写的,并且在Windows上运行,但是文件也应该可以移植到其他平台。

I'm trying to save a couple of files to a container file. The files can be modified later which means the container might have to be enlarged. The user should only see this container as a single file in the file system. The application is written in C++ and running on Windows, but the files should be portable to other platforms as well.

容器格式的要求是:

1. 大小:允许大于4GB的文件。

2. 可移植性:应该可以打开容器文件其他平台。

3. 性能:当更改容器中的文件时,只有代表该特定文件的chunks可能被更改。特别是,可能没有完全重写该文件。

4. 结构:它应该提供一个目录结构,允许建立文件和目录的层次结构。

The requirements for the container format are:
1. Size: Allow files bigger than 4GB.
2. Portability: It should be feasible to open the container files on other platforms.
3. Performance: When changing a file inside the container, only the "chunks" that represent that specific file may be changed. Especially, there may not be a complete rewrite of that file.
4. Structure: It should provide a directory structure that allows to build a hierarchy of files and directories.

当省略需求1.)和2.)复合文件(如Word和Excel使用)是一个很好的合适。

When leaving out requirement 1.) and 2.) compound files (like used by Word and Excel) are a good fit.

当然,可以设计一个满足所有要求的API,但是我想知道是否已经有一些开源解决方案可以解决这个问题。

Of course, it's possible to design an API that fulfills all the requirements, but I wonder if there is already some open-source solution that tackles the very problem?

任何建议?

推荐答案

HDF5文件格式是什么正在寻找是否正在C ++中构建应用程序

Is the HDF5 File Format what you are looking for if you are building an application in C++

这篇关于是否有一个开源的替代Windows复合文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆