From 7f23ee90fd545995a29e2175f15e8b97e59ca67a Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:13:13 +0200 Subject: 3.20 --- comparison.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'comparison.h') 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& directoryPairs, const CompareVariant cmpVar, FolderComparison& output); -~CompareProcess(); + ~CompareProcess(); private: void compareByTimeSize(const std::vector& directoryPairsFormatted, FolderComparison& output); void compareByContent( const std::vector& 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& undefinedFiles, std::vector& undefinedLinks); - //buffer accesses to the same directories; useful when multiple folder pairs are used - class DirectoryBuffer; - std::unique_ptr directoryBuffer; + std::map directoryBuffer; const size_t fileTimeTolerance; //max allowed file time deviation -- cgit