cmFileTimeComparison.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmFileTimeComparison_h
  14. #define cmFileTimeComparison_h
  15. #include "cmStandardIncludes.h"
  16. class cmFileTimeComparisonInternal;
  17. /** \class cmFileTimeComparison
  18. * \brief Helper class for performing globbing searches.
  19. *
  20. * Finds all files that match a given globbing expression.
  21. */
  22. class cmFileTimeComparison
  23. {
  24. public:
  25. cmFileTimeComparison();
  26. ~cmFileTimeComparison();
  27. /**
  28. * Compare file modification times.
  29. * Return true for successful comparison and false for error.
  30. * When true is returned, result has -1, 0, +1 for
  31. * f1 older, same, or newer than f2.
  32. */
  33. bool FileTimeCompare(const char* f1, const char* f2, int* result);
  34. protected:
  35. cmFileTimeComparisonInternal* Internals;
  36. };
  37. #endif