Utils namespace
Files written safely, JSON files and ZIP archives, compiled only if WITH_EDITOR or WITH_LEVEL_PACKS.
Namespaces
- namespace JsonAccess
- Reads values from JSON that came from outside the game, without trusting their types.
Classes
- class AtomicFile
- Writes a file so that a failed write never damages the file that was there.
- class JsonFile
- Reads and writes JSON files that hold a single object.
- class ZipArchive
- Reads a ZIP archive.
- struct ZipEntry
- One file or directory in a ZIP archive.
- class ZipFormat
- Constants and conversions of the ZIP format shared by ZipArchive and ZipWriter.
- class ZipWriter
- Writes a ZIP archive.
Enums
-
enum class ZipError : std::
uint8_t { None, CannotOpen, NotArchive, Corrupted, Multipart, Encrypted, UnsupportedMethod, TooLarge, ChecksumMismatch, CannotWrite } - Why a ZIP archive or its entry couldn't be read.
Enum documentation
enum class Jazz2:: Utils:: ZipError : std:: uint8_t
#include <Jazz2/Utils/ZipArchive.h>
Why a ZIP archive or its entry couldn't be read.
| Enumerators | |
|---|---|
| None |
Nothing failed |
| CannotOpen |
The file can't be opened |
| NotArchive |
The file isn't a ZIP archive |
| Corrupted |
The archive is damaged or its records don't agree |
| Multipart |
The archive is split into several files |
| Encrypted |
The entry is encrypted |
| UnsupportedMethod |
The entry is compressed by a method other than Deflate |
| TooLarge |
The entry or the archive is larger than allowed |
| ChecksumMismatch |
The content doesn't match its checksum |
| CannotWrite |
The target can't be written |