mirror of
https://github.com/Theaninova/BeatLanguageMapper.git
synced 2026-01-06 02:22:51 +00:00
Mk2Rev1
various bugfixes and such. also bookmarks, temp song loaderm and undo overhaul with near complete multiplayer, but menu items disabled. i really wish i could split this into multiple commits, but i don't know how to work unreal.
This commit is contained in:
43
Plugins/ZipUtility-ue4/ThirdParty/7zpp/Include/SevenZipCompressor.h
vendored
Normal file
43
Plugins/ZipUtility-ue4/ThirdParty/7zpp/Include/SevenZipCompressor.h
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include <vector>
|
||||
#include <atlbase.h>
|
||||
#include "SevenZipLibrary.h"
|
||||
#include "SevenZipArchive.h"
|
||||
#include "FileInfo.h"
|
||||
#include "CompressionFormat.h"
|
||||
#include "CompressionLevel.h"
|
||||
#include "ProgressCallback.h"
|
||||
|
||||
|
||||
namespace SevenZip
|
||||
{
|
||||
class SevenZipCompressor : public SevenZipArchive
|
||||
{
|
||||
public:
|
||||
|
||||
SevenZipCompressor( const SevenZipLibrary& library, const TString& archivePath );
|
||||
virtual ~SevenZipCompressor();
|
||||
|
||||
// Includes the last directory as the root in the archive, e.g. specifying "C:\Temp\MyFolder"
|
||||
// makes "MyFolder" the single root item in archive with the files within it included.
|
||||
virtual bool CompressDirectory( const TString& directory, ProgressCallback* callback, bool includeSubdirs = true);
|
||||
|
||||
// Excludes the last directory as the root in the archive, its contents are at root instead. E.g.
|
||||
// specifying "C:\Temp\MyFolder" make the files in "MyFolder" the root items in the archive.
|
||||
virtual bool CompressFiles( const TString& directory, const TString& searchFilter, ProgressCallback* callback, bool includeSubdirs = true );
|
||||
virtual bool CompressAllFiles( const TString& directory, ProgressCallback* callback, bool includeSubdirs = true );
|
||||
|
||||
// Compress just this single file as the root item in the archive.
|
||||
virtual bool CompressFile( const TString& filePath, ProgressCallback* callback);
|
||||
|
||||
private:
|
||||
TString m_outputPath; //the final compression result compression path. Used for tracking in callbacks
|
||||
CComPtr< IStream > OpenArchiveStream();
|
||||
bool FindAndCompressFiles( const TString& directory, const TString& searchPattern,
|
||||
const TString& pathPrefix, bool recursion, ProgressCallback* callback);
|
||||
bool CompressFilesToArchive(const TString& pathPrefix, const std::vector< intl::FilePathInfo >& filePaths, ProgressCallback* callback);
|
||||
bool SetCompressionProperties( IUnknown* outArchive );
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user