X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOImageFinder.h;h=da3213bcabdc1dc0b93f65e7cba808fc9a2415b9;hb=f08880c40f6304be640c7f8702bbbe96f8d50b40;hp=8eba7032b7b7fd710fbd06e4245ab125c3c578fa;hpb=cbf693fa62cd51f4ca5c881838bbb609edc447b0;p=creaImageIO.git diff --git a/src2/creaImageIOImageFinder.h b/src2/creaImageIOImageFinder.h index 8eba703..da3213b 100644 --- a/src2/creaImageIOImageFinder.h +++ b/src2/creaImageIOImageFinder.h @@ -8,10 +8,13 @@ namespace creaImageIO { - + /** + * \ingroup Model + */ //======================================================================= /// 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) + class ImageFinder { public: @@ -21,7 +24,7 @@ namespace creaImageIO /// Dtor ~ImageFinder(); ///==================================================================== - + /* struct UpdateSummary { int scanned_dirs; @@ -56,28 +59,32 @@ namespace creaImageIO cancelled_by_user(false) {} }; - /// + */ + + /// + + bool IsHandledFile( const std::string& filename); - bool AddFile( const std::string& filename, - UpdateSummary& summary ); - bool AddFiles( const std::vector& filename, - wxProgressDialog* progress, - UpdateSummary& summary); + bool AddFile( const std::string& filename ); + // UpdateSummary& summary ); + bool AddFiles( const std::vector& filename ); + // wxProgressDialog* progress, + // UpdateSummary& summary); bool AddDirectory( const std::string& directory, - bool recurse, - wxProgressDialog* progress, - UpdateSummary& summary - ); + bool recurse ); + // wxProgressDialog* progress, + // UpdateSummary& summary + // ); void ParseDirectory( const std::string& directory, std::vector &Filenames, - bool recurse, - wxProgressDialog* progress, - UpdateSummary& summary); + bool recurse ); + // wxProgressDialog* progress, + // UpdateSummary& summary); private: TreeHandler* mTreeHandler; ImageReader mReader; - wxStopWatch msw[10]; + // wxStopWatch msw[10]; }; // EO class ImageFinder