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:
- ///====================================================================
+ //====================================================================
/// Ctor
ImageFinder(TreeHandler* tree);
/// Dtor
~ImageFinder();
- ///====================================================================
-
+ //====================================================================
+ /*
struct UpdateSummary
{
int scanned_dirs;
cancelled_by_user(false)
{}
};
- ///
+ */
+
+ ///Returns if the file can be read or not
bool IsHandledFile( const std::string& filename);
- bool AddFile( const std::string& filename,
- UpdateSummary& summary );
- bool AddFiles( const std::vector<std::string>& filename,
- wxProgressDialog* progress,
- UpdateSummary& summary);
+ bool AddFile( const std::string& filename );
+ // UpdateSummary& summary );
+ bool AddFiles( const std::vector<std::string>& 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<std::string> &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