cmCTestUpdateHandler.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "cmStandardIncludes.h"
  16. #include "cmListFileCache.h"
  17. class cmCTest;
  18. /** \class cmCTestUpdateHandler
  19. * \brief A class that handles ctest -S invocations
  20. *
  21. */
  22. class cmCTestUpdateHandler
  23. {
  24. public:
  25. /*
  26. * The main entry point for this class
  27. */
  28. int UpdateDirectory(cmCTest *);
  29. /*
  30. * If verbose then more informaiton is printed out
  31. */
  32. void SetVerbose(bool val) { m_Verbose = val; }
  33. cmCTestUpdateHandler();
  34. private:
  35. bool m_Verbose;
  36. cmCTest *m_CTest;
  37. // Some structures needed for cvs 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. };
  44. #endif