1 #ifndef __creaImageIOImageFinder_h_INCLUDED__
2 #define __creaImageIOImageFinder_h_INCLUDED__
4 #include <creaImageIOTreeHandler.h>
5 #include <creaImageIOImageReader.h>
7 #include <wx/progdlg.h>
15 //=======================================================================
16 /// 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)
21 ///====================================================================
23 ImageFinder(TreeHandler* tree);
26 ///====================================================================
41 long update_structs_time;
42 long update_database_time;
44 bool cancelled_by_user;
56 update_structs_time(0),
57 update_database_time(0),
59 cancelled_by_user(false)
63 bool IsHandledFile( const std::string& filename);
64 bool AddFile( const std::string& filename,
65 UpdateSummary& summary );
66 bool AddFiles( const std::vector<std::string>& filename,
67 wxProgressDialog* progress,
68 UpdateSummary& summary);
69 bool AddDirectory( const std::string& directory,
71 wxProgressDialog* progress,
72 UpdateSummary& summary
75 void ParseDirectory( const std::string& directory,
76 std::vector<std::string> &Filenames,
78 wxProgressDialog* progress,
79 UpdateSummary& summary);
81 TreeHandler* mTreeHandler;
86 // EO class ImageFinder
87 //=======================================================================
90 } // EO namespace creaImageIO