Popularity
2.3
Declining
Activity
0.0
Stable
81
10
22

Code Quality Rank: L5
Programming language: C++
License: GNU General Public License v3.0 or later
Tags: Compression    

PhysicsFS alternatives and similar libraries

Based on the "Compression" category.
Alternatively, view PhysicsFS alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of PhysicsFS or a related project?

Add another 'Compression' Library

README

PhysFS++

PhysFS++ is a C++ wrapper for the excellent PhysicsFS library by Ryan C. Gordon and others.

It is licensed under the zlib license - same as PhysicsFS (at the time of writing).

Requirements

CMake for building, and, of course, the PhysicsFS library.

Features

The wrapper simply wraps most functions in a PhysFS namespace, and gives them C++ signatures (std::string rather than const char *).

Additionally:

  • Functions that are related to byte order conversions are placed in the PhysFS::Util namespace.
  • Instead of replicating PHYSFS_openRead, PHYSFS_openWrite, and PHYSFS_openAppend, files are opened as streams using PhysFS::ifstream and PhysFS::ofstream.
  • ofstream's constructor takes a mode, which specifies either append or write.
  • Both ifstream and ofstream are standard streams, and only have an extra method - length, which calls PHYSFS_fileLength.


*Note that all licence references and agreements mentioned in the PhysicsFS README section above are relevant to that project's source code only.