• Main Page
  • Namespaces
  • Data Structures
  • Files
  • File List

/www/proggenOrg/dedupe/export/trunk/filesearch/searchfiles.h

Go to the documentation of this file.
00001 
00008 #ifndef ORG_PROGGEN_DEDUPE_FILESEARCH_SEARCHFILES_H
00009 #define ORG_PROGGEN_DEDUPE_FILESEARCH_SEARCHFILES_H
00010 
00011 #include <vector>
00012 #include <algorithm>
00013 #include <fileinfo.h>
00014 
00015 
00016 namespace Dedupe
00017 {
00018   namespace FileSearch
00019   {
00020 
00024     class SearchFiles
00025     {
00026       public:
00027 
00028       SearchFiles();
00029 
00030       virtual ~SearchFiles() {}
00031 
00037       virtual inline Dedupe::FileStream const & GetFiles() const
00038       {
00039         return AllFiles;
00040       }
00041 
00047       inline Dedupe::FileStream const & GetNotUsableFiles() const
00048       {
00049         return NotUsableFiles;
00050       }
00051 
00057       inline unsigned long const & GetDirectoryCounter() const
00058       {
00059         return DirectoryCounter;
00060       }
00061 
00067       inline unsigned long const & GetFileCounter() const
00068       {
00069         return FileCounter;
00070       }
00071 
00077       bool Search( Dedupe::FileInfo &FileObject );
00078 
00084       bool SearchRecursive( Dedupe::FileInfo &FileObject );
00085 
00086 
00087       protected:
00088       //All founded files stay here
00089       Dedupe::FileStream AllFiles, NotUsableFiles, Directories;
00090 
00091       //variables to count founded files and directorys
00092       unsigned long DirectoryCounter, FileCounter;
00093     };
00094   }
00095 }
00096 
00097 
00098 #endif

Generated on Mon Mar 11 2013 12:04:52 for Dedupe by  doxygen 1.7.1