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)
64 ///Returns if the file can be read or not
65 bool IsHandledFile( const std::string& filename);
66 bool AddFile( const std::string& filename );
67 // UpdateSummary& summary );
68 bool AddFiles( const std::vector<std::string>& filename );
69 // wxProgressDialog* progress,
70 // UpdateSummary& summary);
71 bool AddDirectory( const std::string& directory,
73 // wxProgressDialog* progress,
74 // UpdateSummary& summary
77 void ParseDirectory( const std::string& directory,
78 std::vector<std::string> &Filenames,
80 // wxProgressDialog* progress,
81 // UpdateSummary& summary);
83 TreeHandler* mTreeHandler;
85 // wxStopWatch msw[10];
88 // EO class ImageFinder
89 //=======================================================================
92 } // EO namespace creaImageIO