summaryrefslogtreecommitdiff
path: root/algorithm.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:45 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:57:45 +0200
commit2a3ebac62eb6dd88122c0f447ea90ce368373d3a (patch)
treefae5c18deaecfb6f39d4d66dd3de8ce730b2025b /algorithm.h
parent1.17 (diff)
downloadFreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.tar.gz
FreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.tar.bz2
FreeFileSync-2a3ebac62eb6dd88122c0f447ea90ce368373d3a.zip
1.18
Diffstat (limited to 'algorithm.h')
-rw-r--r--algorithm.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/algorithm.h b/algorithm.h
index e198906c..9cf1e8ad 100644
--- a/algorithm.h
+++ b/algorithm.h
@@ -1,44 +1,45 @@
#ifndef ALGORITHM_H_INCLUDED
#define ALGORITHM_H_INCLUDED
-#include "FreeFileSync.h"
-#include "library/statusHandler.h"
+#include "structures.h"
#include "library/resources.h"
+class ErrorHandler;
+
namespace FreeFileSync
{
+ wxString formatFilesizeToShortString(const wxLongLong& filesize);
wxString formatFilesizeToShortString(const wxULongLong& filesize);
wxString formatFilesizeToShortString(const double filesize);
+
Zstring getFormattedDirectoryName(const Zstring& dirname);
bool endsWithPathSeparator(const Zstring& name);
- void swapGrids(FileCompareResult& grid);
+ void swapGrids(FolderComparison& folderCmp);
- void addSubElements(const FileCompareResult& grid, const FileCompareLine& relevantRow, std::set<int>& subElements);
+ void addSubElements(const FileComparison& fileCmp, const FileCompareLine& relevantRow, std::set<int>& subElements);
- //manual deletion of files on main grid
- wxString deleteFromGridAndHDPreview(const FileCompareResult& grid,
+ //manual deletion of files on main grid: runs at individual directory pair level
+ wxString deleteFromGridAndHDPreview(const FileComparison& fileCmp,
const std::set<int>& rowsToDeleteOnLeft,
const std::set<int>& rowsToDeleteOnRight,
const bool deleteOnBothSides);
- void deleteFromGridAndHD(FileCompareResult& grid,
+ void deleteFromGridAndHD(FileComparison& fileCmp,
const std::set<int>& rowsToDeleteOnLeft,
const std::set<int>& rowsToDeleteOnRight,
const bool deleteOnBothSides,
const bool useRecycleBin,
ErrorHandler* errorHandler);
- void filterGridData(FileCompareResult& currentGridData, const wxString& includeFilter, const wxString& excludeFilter);
- void includeAllRowsOnGrid(FileCompareResult& currentGridData);
- void excludeAllRowsOnGrid(FileCompareResult& currentGridData);
wxString utcTimeToLocalString(const wxLongLong& utcTime);
//enhanced binary search template: returns an iterator
template <class ForwardIterator, class T>
+ inline
ForwardIterator custom_binary_search (ForwardIterator first, ForwardIterator last, const T& value)
{
first = lower_bound(first, last, value);
bgstack15