wildcharsenum.h 672 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __WILDCHARSENUM_H
  2. #define __WILDCHARSENUM_H
  3. #include <bfc/ptrlist.h>
  4. #include <bfc/string/StringW.h>
  5. class find_entry {
  6. public:
  7. find_entry(const wchar_t *_path, const wchar_t *_filename) : path(_path), filename(_filename) {}
  8. ~find_entry() {}
  9. StringW path;
  10. StringW filename;
  11. };
  12. class WildcharsEnumerator
  13. {
  14. public:
  15. WildcharsEnumerator(const wchar_t *_selection);
  16. virtual ~WildcharsEnumerator();
  17. int getNumFiles();
  18. const wchar_t *enumFile(int n);
  19. void rescan();
  20. static int isWildchars(const wchar_t *filename);
  21. private:
  22. StringW selection;
  23. PtrList <find_entry> finddatalist;
  24. StringW singfiledup;
  25. StringW enumFileString;
  26. };
  27. #endif