FileInMemorySet_def.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* FileInMemorySet_def.h
  2. *
  3. * Copyright (C) 2017 David Weenink
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #define ooSTRUCT FileInMemorySet
  19. oo_DEFINE_CLASS (FileInMemorySet, SortedSet)
  20. #if oo_DECLARING
  21. static int s_compareHook (Daata f1, Daata f2) noexcept {
  22. FileInMemory me = static_cast<FileInMemory> (f1), thee = static_cast<FileInMemory> (f2);
  23. return Melder_cmp (my d_path.get(), thy d_path.get());
  24. }
  25. CompareHook v_getCompareHook () override { return s_compareHook; }
  26. void v_info ()
  27. override;
  28. #endif
  29. oo_END_CLASS (FileInMemorySet)
  30. #undef ooSTRUCT
  31. /* End of file FileInMemorySet_def.h */