FilenameField.h 581 B

1234567891011121314151617181920212223242526
  1. #ifndef NDE_FILENAMEFIELD_H
  2. #define NDE_FILENAMEFIELD_H
  3. /*
  4. Mostly the same as StringField
  5. but this implements OS-dependent string comparisons that make sense for the file system
  6. */
  7. #include "../nde.h"
  8. #include "../NDEString.h"
  9. class FilenameField : public StringField
  10. {
  11. protected:
  12. virtual int Compare(Field *Entry);
  13. virtual int Starts(Field *Entry);
  14. virtual int Contains(Field *Entry);
  15. virtual bool ApplyFilter(Field *Data, int op);
  16. virtual Field *Clone(Table *pTable);
  17. public:
  18. FilenameField(const char *Str, int strkind=STRING_IS_WCHAR);
  19. FilenameField();
  20. };
  21. #endif