cmCTestUpdateHandler.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. 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 cmCTestUpdateHandler_h
  14. #define cmCTestUpdateHandler_h
  15. #include "cmCTestGenericHandler.h"
  16. #include "cmListFileCache.h"
  17. #if defined(__sgi) && !defined(__GNUC__)
  18. # pragma set woff 1375 /* base class destructor not virtual */
  19. #endif
  20. /** \class cmCTestUpdateHandler
  21. * \brief A class that handles ctest -S invocations
  22. *
  23. */
  24. class cmCTestUpdateHandler : public cmCTestGenericHandler
  25. {
  26. public:
  27. /*
  28. * The main entry point for this class
  29. */
  30. int ProcessHandler();
  31. cmCTestUpdateHandler();
  32. enum {
  33. e_CVS,
  34. e_SVN
  35. };
  36. private:
  37. // Some structures needed for update
  38. struct StringPair :
  39. public std::pair<std::string, std::string>{};
  40. struct UpdateFiles : public std::vector<StringPair>{};
  41. struct AuthorsToUpdatesMap :
  42. public std::map<std::string, UpdateFiles>{};
  43. // Determine the type of version control
  44. int DetermineType(const char* cmd, const char* type);
  45. };
  46. #if defined(__sgi) && !defined(__GNUC__)
  47. # pragma reset woff 1375 /* base class destructor not virtual */
  48. #endif
  49. #endif