mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-24 07:56:30 +00:00
27 lines
470 B
C++
27 lines
470 B
C++
#include "stdafx.h"
|
|
#include "ZipEntry.h"
|
|
|
|
ZipEntry::ZipEntry(bit7z::BitArchiveItemOffset itemInfo) : _itemInfo(itemInfo) {
|
|
_name = itemInfo.name();
|
|
_path = itemInfo.path();
|
|
}
|
|
|
|
DWORD ZipEntry::getSize() {
|
|
return _itemInfo.size();
|
|
}
|
|
|
|
bool ZipEntry::isDir() {
|
|
return _itemInfo.isDir();
|
|
}
|
|
|
|
std::string ZipEntry::getName() {
|
|
return _name;
|
|
}
|
|
|
|
std::string ZipEntry::path() {
|
|
return _path;
|
|
}
|
|
|
|
unsigned int ZipEntry::getIndex() {
|
|
return (unsigned int)_itemInfo.index();
|
|
} |