|
Nebula
|
#include <zipdirentry.h>
A directory entry in a zip arcive.
The ZipDirEntry class is thread-safe, all public methods can be invoked from on the same object from different threads.
Public Member Functions | |
| ZipDirEntry () | |
| constructor | |
| const Util::StringAtom & | GetName () const |
| get the name of the dir entry | |
| ZipFileEntry * | FindFileEntry (const Util::StringAtom &name) const |
| find a direct child file entry, return 0 if not exists | |
| ZipDirEntry * | FindDirEntry (const Util::StringAtom &name) const |
| find a direct child directory entry, return 0 if not exists | |
| const Util::Array< ZipDirEntry > & | GetDirEntries () const |
| get directory entries | |
| const Util::Array< ZipFileEntry > & | GetFileEntries () const |
| get file entries | |
Private Member Functions | |
| void | SetName (const Util::StringAtom &n) |
| set the name of the dir entry | |
| ZipFileEntry * | AddFileEntry (const Util::StringAtom &name) |
| add a file child entry | |
| ZipDirEntry * | AddDirEntry (const Util::StringAtom &name) |
| add a directory child entry | |
Private Attributes | |
| Util::StringAtom | name |
| Util::Array< ZipFileEntry > | fileEntries |
| Util::Array< ZipDirEntry > | dirEntries |
| Util::Dictionary< Util::StringAtom, IndexT > | fileIndexMap |
| Util::Dictionary< Util::StringAtom, IndexT > | dirIndexMap |
Friends | |
| class | ZipArchive |
| IO::ZipDirEntry::ZipDirEntry | ( | ) |
constructor
|
private |
add a directory child entry
Adds a new directory entry object to the internal dictionary.
NOTE: this method will not check whether the entry already exists for performance reasons (doing this would force the dictionary to be sorted after every insert).
The method returns a reference to the actually added DirEntry.
|
private |
add a file child entry
Adds a new file entry object to the internal dictionary.
NOTE: this method will not check whether the entry already exists for performance reasons (doing this would force the dictionary to be sorted after every insert).
The method returns a reference of the actually added file entry.
| ZipDirEntry * IO::ZipDirEntry::FindDirEntry | ( | const Util::StringAtom & | name | ) | const |
find a direct child directory entry, return 0 if not exists
| ZipFileEntry * IO::ZipDirEntry::FindFileEntry | ( | const Util::StringAtom & | name | ) | const |
find a direct child file entry, return 0 if not exists
|
inline |
get directory entries
|
inline |
get file entries
|
inline |
get the name of the dir entry
|
inlineprivate |
set the name of the dir entry
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |