Podmiana zmiennych int8 na int16, Działa filtrowanie plików po przez podanie ścierzek
This commit is contained in:
parent
293c1412ad
commit
621b4b6eb7
12 changed files with 66 additions and 81 deletions
|
|
@ -38,21 +38,17 @@
|
|||
#include "EncryptionManager.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#define COMPRESSION_LEVEL 12 // Poziom kompresji plików (3 < 12)
|
||||
|
||||
#define KEY_ZIP "COMPRESS" // Pliki do skompresowania
|
||||
#define KEY_RAW "RAW" // Pliki które maj¹ pozostaæ w oryginalnej formie
|
||||
#define KEY_IGNORE "IGNORE" // Pliki pominiête przy pakowaniu
|
||||
#define KEY_ENCRYPT "ENCRYPT" // Plili które maj¹ byæ zaszyfrowane
|
||||
#define KEY_ZIP "compress" // Pliki do skompresowania
|
||||
#define KEY_RAW "raw" // Pliki które maj¹ pozostaæ w oryginalnej formie
|
||||
#define KEY_IGNORE "ignore" // Pliki pominiête przy pakowaniu
|
||||
#define KEY_ENCRYPT "encrypt" // Plili które maj¹ byæ zaszyfrowane
|
||||
|
||||
#define ALL_FILE ".*" // Wszystkie pliki
|
||||
|
||||
struct PathConf
|
||||
{
|
||||
std::string path;
|
||||
int8_t parameter;
|
||||
int16_t parameter;
|
||||
};
|
||||
|
||||
class CreateCargo {
|
||||
|
|
@ -61,14 +57,14 @@ public:
|
|||
virtual ~CreateCargo();
|
||||
|
||||
// Punk wejœcia do tworzenia archivum
|
||||
bool Create(const std::string&, int8_t);
|
||||
bool Create(const std::string&, const int16_t&);
|
||||
|
||||
private:
|
||||
const std::string signature;
|
||||
const std::string extension;
|
||||
const short version;
|
||||
|
||||
int8_t methodFlags;
|
||||
short methodFlags;
|
||||
|
||||
|
||||
std::string catalogPath;
|
||||
|
|
@ -82,6 +78,7 @@ private:
|
|||
// listy wyj¹tków
|
||||
std::vector<std::string> ignoreList;
|
||||
std::vector<std::string> zipList;
|
||||
std::vector<std::string> encList;
|
||||
|
||||
// G³ówna lista plików z parametrami
|
||||
std::vector<PathConf> filesPaths;
|
||||
|
|
@ -117,7 +114,7 @@ private:
|
|||
void GetFilters(const std::string&);
|
||||
|
||||
// Sprawdza czy plik znajduje siê na liœcie
|
||||
void computingBytes(const int8_t&, std::vector<char>&, std::vector<char>&);
|
||||
void computingBytes(const int16_t&, std::vector<char>&, std::vector<char>&);
|
||||
|
||||
// Kasowanie z listy plików ignorow
|
||||
bool CheckIgnorePath(const std::string&);
|
||||
|
|
@ -136,8 +133,5 @@ private:
|
|||
|
||||
// ZnajdŸ wskazany element na liœcie
|
||||
bool FindOnTheList(const std::vector<std::string>&, const std::string&);
|
||||
|
||||
// Przygotuj listê plików do spakowania
|
||||
void PrepareList(const std::vector<std::string>&, const std::vector<std::string>&, const std::vector<std::string>&);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue