2 * Copyright (c) 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
5 #ifndef CHANGES_ITERATOR_H
6 #define CHANGES_ITERATOR_H
9 #include <HashString.h>
11 #include "FileIterator.h"
17 class ChangesIterator
: public FileIterator
{
19 ChangesIterator(const Model
* model
);
20 virtual ~ChangesIterator();
22 virtual bool IsValid() const;
23 virtual bool GetNextName(char* buffer
);
24 virtual bool NotifyNegatives() const;
27 void EntryAdded(const char* path
);
28 void EntryRemoved(const char* path
);
29 void EntryChanged(const char* path
);
32 void PrintToStream() const;
35 typedef HashMap
<HashString
, uint32
> PathMap
;
45 bool fRecurseDirs
: 1;
46 bool fRecurseLinks
: 1;
47 bool fSkipDotDirs
: 1;
51 #endif // CHANGES_ITERATOR_H