Nebula
Loading...
Searching...
No Matches
zipdirentry.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
14#include "core/types.h"
16
17//------------------------------------------------------------------------------
18namespace IO
19{
53
54//------------------------------------------------------------------------------
57inline void
59{
60 this->name = n;
61}
62
63//------------------------------------------------------------------------------
66inline const Util::StringAtom&
68{
69 return this->name;
70}
71
72//------------------------------------------------------------------------------
75inline const Util::Array<ZipDirEntry>&
77{
78 return this->dirEntries;
79}
80
81//------------------------------------------------------------------------------
84inline const Util::Array<ZipFileEntry>&
86{
87 return this->fileEntries;
88}
89
90
91} // namespace IO
92//------------------------------------------------------------------------------
93
94
Private helper class for ZipFileSystem to hold per-Zip-archive data.
Definition ziparchive.h:26
A directory entry in a zip arcive.
Definition zipdirentry.h:21
Util::Dictionary< Util::StringAtom, IndexT > dirIndexMap
Definition zipdirentry.h:51
ZipFileEntry * AddFileEntry(const Util::StringAtom &name)
add a file child entry
Definition zipdirentry.cc:31
ZipFileEntry * FindFileEntry(const Util::StringAtom &name) const
find a direct child file entry, return 0 if not exists
Definition zipdirentry.cc:62
Util::StringAtom name
Definition zipdirentry.h:47
void SetName(const Util::StringAtom &n)
set the name of the dir entry
Definition zipdirentry.h:58
const Util::StringAtom & GetName() const
get the name of the dir entry
Definition zipdirentry.h:67
Util::Array< ZipFileEntry > fileEntries
Definition zipdirentry.h:48
ZipDirEntry()
constructor
Definition zipdirentry.cc:16
ZipDirEntry * FindDirEntry(const Util::StringAtom &name) const
find a direct child directory entry, return 0 if not exists
Definition zipdirentry.cc:80
const Util::Array< ZipFileEntry > & GetFileEntries() const
get file entries
Definition zipdirentry.h:85
Util::Array< ZipDirEntry > dirEntries
Definition zipdirentry.h:49
const Util::Array< ZipDirEntry > & GetDirEntries() const
get directory entries
Definition zipdirentry.h:76
Util::Dictionary< Util::StringAtom, IndexT > fileIndexMap
Definition zipdirentry.h:50
ZipDirEntry * AddDirEntry(const Util::StringAtom &name)
add a directory child entry
Definition zipdirentry.cc:49
A file entry in a zip archive.
Definition zipfileentry.h:22
Nebula's dynamic array class.
Definition array.h:60
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
A StringAtom.
Definition stringatom.h:22
Instances of wrapped stream classes.
Definition orientation.cc:10