summaryrefslogtreecommitdiff
path: root/comparison.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:13 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:13 +0200
commit7f23ee90fd545995a29e2175f15e8b97e59ca67a (patch)
treef8d0afac51995032e58b9a475ccbbc73ba207baf /comparison.h
parent3.19 (diff)
downloadFreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.tar.gz
FreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.tar.bz2
FreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.zip
3.20
Diffstat (limited to 'comparison.h')
-rw-r--r--comparison.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/comparison.h b/comparison.h
index 444b3c3c..2d1eab75 100644
--- a/comparison.h
+++ b/comparison.h
@@ -3,7 +3,7 @@
// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) *
// **************************************************************************
-//
+
#ifndef COMPARISON_H_INCLUDED
#define COMPARISON_H_INCLUDED
@@ -13,6 +13,7 @@
#include "structures.h"
#include "shared/disable_standby.h"
#include "library/norm_filter.h"
+#include "library/parallel_scan.h"
namespace zen
@@ -51,24 +52,22 @@ public:
void startCompareProcess(const std::vector<FolderPairCfg>& directoryPairs,
const CompareVariant cmpVar,
FolderComparison& output);
-~CompareProcess();
+ ~CompareProcess();
private:
void compareByTimeSize(const std::vector<FolderPairCfg>& directoryPairsFormatted, FolderComparison& output);
void compareByContent( const std::vector<FolderPairCfg>& directoryPairsFormatted, FolderComparison& output);
//create comparison result table and fill category except for files existing on both sides: undefinedFiles and undefinedLinks are appended!
- void categorizeSymlinkByTime(SymLinkMapping* linkObj) const;
- void categorizeSymlinkByContent(SymLinkMapping* linkObj) const;
+ void categorizeSymlinkByTime(SymLinkMapping& linkObj) const;
+ void categorizeSymlinkByContent(SymLinkMapping& linkObj) const;
void performComparison(const FolderPairCfg& fpCfg,
BaseDirMapping& output,
std::vector<FileMapping*>& undefinedFiles,
std::vector<SymLinkMapping*>& undefinedLinks);
- //buffer accesses to the same directories; useful when multiple folder pairs are used
- class DirectoryBuffer;
- std::unique_ptr<DirectoryBuffer> directoryBuffer;
+ std::map<DirectoryKey, DirectoryValue> directoryBuffer;
const size_t fileTimeTolerance; //max allowed file time deviation
bgstack15