mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4447 3b4a5df2-a311-0410-b5c6-a8a6f20db521
53 lines
1.7 KiB
C++
53 lines
1.7 KiB
C++
/*
|
|
* bfVFS : vfs/Ext/7z/vfs_7z_library.h
|
|
* - implements Library interface, creates library object from uncompressed 7-zip archive files
|
|
*
|
|
* Copyright (C) 2008 - 2010 (BF) john.bf.smith@googlemail.com
|
|
*
|
|
* This file is part of the bfVFS library
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _VFS_7Z_LIBRARY_H_
|
|
#define _VFS_7Z_LIBRARY_H_
|
|
|
|
#ifdef VFS_WITH_7ZIP
|
|
|
|
#include <vfs/Core/Location/vfs_uncompressed_lib_base.h>
|
|
#include <vfs/Core/File/vfs_lib_file.h>
|
|
|
|
namespace vfs
|
|
{
|
|
class VFS_API CUncompressed7zLibrary : public vfs::CUncompressedLibraryBase
|
|
{
|
|
public:
|
|
CUncompressed7zLibrary(tReadableFile *libraryFile,
|
|
vfs::Path const& mountPoint,
|
|
bool ownFile = false,
|
|
vfs::ObjBlockAllocator<vfs::CLibFile>* allocator=NULL);
|
|
virtual ~CUncompressed7zLibrary();
|
|
|
|
virtual bool init();
|
|
private:
|
|
vfs::ObjBlockAllocator<vfs::CLibFile>* _allocator;
|
|
};
|
|
} // end namespace
|
|
|
|
#endif // VFS_WITH_7ZIP
|
|
|
|
#endif // _VFS_7Z_LIBRARY_H_
|
|
|