Files
source/ext/VFS/include/vfs/Ext/7z/vfs_7z_library.h
T

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_