ManaPlus
zipentry.cpp
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2017-2019 The ManaPlus Developers
4  *
5  * This file is part of The ManaPlus Client.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #include "fs/virtfs/zipentry.h"
22 
24 
25 #include "utils/dtor.h"
26 
27 #include "debug.h"
28 
29 namespace VirtFs
30 {
31 
32 ZipEntry::ZipEntry(const std::string &restrict archiveName,
33  const std::string &subDir0,
34  FsFuncs *restrict const funcs0) :
35  FsEntry(FsEntryType::Zip, funcs0),
36  mHeaders(),
37  mDirs()
38 {
39  root = archiveName;
40  subDir = subDir0;
41 }
42 
44 {
46 }
47 
48 } // namespace VirtFs
VirtFs::ZipEntry::mHeaders
std::vector< ZipLocalHeader * > mHeaders
Definition: zipentry.h:45
VirtFs::FsEntry
Definition: fsentry.h:35
VirtFs::FsFuncs
Definition: fsfuncs.h:38
ziplocalheader.h
FsEntryType
Definition: fsentrytype.h:26
FsEntryType::Zip
@ Zip
Definition: fsentrytype.h:29
VirtFs::FsEntry::root
std::string root
Definition: fsentry.h:44
delete_all
void delete_all(Container &c)
Definition: dtor.h:55
zipentry.h
VirtFs::FsEntry::subDir
std::string subDir
Definition: fsentry.h:46
restrict
#define restrict
Definition: localconsts.h:164
VirtFs::ZipEntry::ZipEntry
ZipEntry(const std::string &archiveName, const std::string &subDir0, FsFuncs *const funcs0)
Definition: zipentry.cpp:32
VirtFs::ZipEntry::~ZipEntry
virtual ~ZipEntry()
Definition: zipentry.cpp:43
dtor.h
VirtFs
Definition: direntry.cpp:25
debug.h