diff options
Diffstat (limited to 'src/3rdParty/efsw/DirectorySnapshotDiff.hpp')
-rwxr-xr-x | src/3rdParty/efsw/DirectorySnapshotDiff.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/DirectorySnapshotDiff.hpp b/src/3rdParty/efsw/DirectorySnapshotDiff.hpp new file mode 100755 index 0000000..26a29ec --- /dev/null +++ b/src/3rdParty/efsw/DirectorySnapshotDiff.hpp | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef EFSW_DIRECTORYSNAPSHOTDIFF_HPP | ||
2 | #define EFSW_DIRECTORYSNAPSHOTDIFF_HPP | ||
3 | |||
4 | #include <efsw/FileInfo.hpp> | ||
5 | |||
6 | namespace efsw { | ||
7 | |||
8 | class DirectorySnapshotDiff { | ||
9 | public: | ||
10 | FileInfoList FilesDeleted; | ||
11 | FileInfoList FilesCreated; | ||
12 | FileInfoList FilesModified; | ||
13 | MovedList FilesMoved; | ||
14 | FileInfoList DirsDeleted; | ||
15 | FileInfoList DirsCreated; | ||
16 | FileInfoList DirsModified; | ||
17 | MovedList DirsMoved; | ||
18 | bool DirChanged; | ||
19 | |||
20 | void clear(); | ||
21 | |||
22 | bool changed(); | ||
23 | }; | ||
24 | |||
25 | #define DiffIterator( FileInfoListName ) \ | ||
26 | it = Diff.FileInfoListName.begin(); \ | ||
27 | for ( ; it != Diff.FileInfoListName.end(); it++ ) | ||
28 | |||
29 | #define DiffMovedIterator( MovedListName ) \ | ||
30 | mit = Diff.MovedListName.begin(); \ | ||
31 | for ( ; mit != Diff.MovedListName.end(); mit++ ) | ||
32 | |||
33 | } // namespace efsw | ||
34 | |||
35 | #endif | ||