Go to the documentation of this file.00001
00008 #ifndef ORG_PROGGEN_DEDUPE_FILESEARCH_FILEBROWSER_H
00009 #define ORG_PROGGEN_DEDUPE_FILESEARCH_FILEBROWSER_H
00010
00011 #include <vector>
00012 #include <algorithm>
00013 #include "state.h"
00014 #include "searchfiles.h"
00015
00016 namespace Dedupe
00017 {
00018 namespace FileSearch
00019 {
00020
00024 class FileBrowser : public Dedupe::FileSearch::SearchFiles
00025 {
00026 public:
00027
00028 FileBrowser( Dedupe::FileInfo::FileInfo Start )
00029 {
00030 DirectoryCounter = 0;
00031 FileCounter = 0;
00032 Search( Start );
00033 for( Dedupe::FileSearch::FileStream::
00034 const_iterator iter = Directories.begin();
00035 iter != Directories.end();
00036 iter++ )
00037 {
00038 AllFiles.push_back( *iter );
00039 }
00040
00041 SortFileList();
00042 };
00043
00044 private:
00045 Dedupe::State::GeneralCodes SortFileList()
00046 {
00047 sort( AllFiles.begin(), AllFiles.end() );
00048
00049 return Dedupe::State::Ok;
00050 }
00051
00052 };
00053 }
00054 }
00055
00056 #endif