Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
zipfilesystem.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
33
#include "
io/archfs/archivefilesystembase.h
"
34
35
//------------------------------------------------------------------------------
36
namespace
IO
37
{
38
class
ZipArchive
;
39
40
class
ZipFileSystem
:
public
ArchiveFileSystemBase
41
{
42
__DeclareClass
(
ZipFileSystem
);
43
__DeclareInterfaceSingleton
(
ZipFileSystem
);
44
public
:
46
ZipFileSystem
();
48
virtual
~ZipFileSystem
();
49
51
void
Setup
();
53
void
Discard
();
54
56
Ptr<Archive>
FindArchiveWithFile
(
const
URI
& fileUri)
const
;
58
Ptr<Archive>
FindArchiveWithDir
(
const
URI
& dirUri)
const
;
59
};
60
61
}
// namespace IO
62
//------------------------------------------------------------------------------
63
64
65
archivefilesystembase.h
IO::ArchiveFileSystemBase::ArchiveFileSystemBase
ArchiveFileSystemBase()
constructor
Definition
archivefilesystembase.cc:21
IO::URI
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition
uri.h:67
IO::ZipArchive
Private helper class for ZipFileSystem to hold per-Zip-archive data.
Definition
ziparchive.h:26
IO::ZipFileSystem::ZipFileSystem
ZipFileSystem()
constructor
Definition
zipfilesystem.cc:23
IO::ZipFileSystem::FindArchiveWithFile
Ptr< Archive > FindArchiveWithFile(const URI &fileUri) const
find first archive which contains the file path
Definition
zipfilesystem.cc:73
IO::ZipFileSystem::~ZipFileSystem
virtual ~ZipFileSystem()
destructor
Definition
zipfilesystem.cc:31
IO::ZipFileSystem::Setup
void Setup()
setup the archive file system
Definition
zipfilesystem.cc:45
IO::ZipFileSystem::__DeclareInterfaceSingleton
__DeclareInterfaceSingleton(ZipFileSystem)
IO::ZipFileSystem::__DeclareClass
__DeclareClass(ZipFileSystem)
IO::ZipFileSystem::FindArchiveWithDir
Ptr< Archive > FindArchiveWithDir(const URI &dirUri) const
find first archive which contains the directory path
Definition
zipfilesystem.cc:108
IO::ZipFileSystem::Discard
void Discard()
discard the archive file system
Definition
zipfilesystem.cc:56
Ptr
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition
ptr.h:38
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
code
foundation
io
zipfs
zipfilesystem.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.