1 #ifndef __creaImageIOImageFinder_h_INCLUDED__
2 #define __creaImageIOImageFinder_h_INCLUDED__
4 #include <creaImageIOTreeHandler.h>
5 #include <creaImageIOImageReader.h>
7 #include <wx/progdlg.h>
13 //=======================================================================
14 /// Parses (recursively) a part of a filesystem to look for known images and load their attributes in order to add the images to a Tree (submission via a TreeHandler::AddBranch)
18 ///====================================================================
20 ImageFinder(TreeHandler* tree);
23 ///====================================================================
38 long update_structs_time;
39 long update_database_time;
41 bool cancelled_by_user;
53 update_structs_time(0),
54 update_database_time(0),
56 cancelled_by_user(false)
60 bool IsHandledFile( const std::string& filename);
61 bool AddFile( const std::string& filename,
62 UpdateSummary& summary );
63 bool AddFiles( const std::vector<std::string>& filename,
64 wxProgressDialog* progress,
65 UpdateSummary& summary);
66 bool AddDirectory( const std::string& directory,
68 wxProgressDialog* progress,
69 UpdateSummary& summary
72 void ParseDirectory( const std::string& directory,
73 std::vector<std::string> &Filenames,
75 wxProgressDialog* progress,
76 UpdateSummary& summary);
78 TreeHandler* mTreeHandler;
83 // EO class ImageFinder
84 //=======================================================================
87 } // EO namespace creaImageIO