cmCTestBZR.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 cmCTestBZR_h
  14. #define cmCTestBZR_h
  15. #include "cmCTestGlobalVC.h"
  16. /** \class cmCTestBZR
  17. * \brief Interaction with bzr command-line tool
  18. *
  19. */
  20. class cmCTestBZR: public cmCTestGlobalVC
  21. {
  22. public:
  23. /** Construct with a CTest instance and update log stream. */
  24. cmCTestBZR(cmCTest* ctest, std::ostream& log);
  25. virtual ~cmCTestBZR();
  26. private:
  27. // Implement cmCTestVC internal API.
  28. virtual void NoteOldRevision();
  29. virtual void NoteNewRevision();
  30. virtual bool UpdateImpl();
  31. // URL of repository directory checked out in the working tree.
  32. std::string URL;
  33. std::string LoadInfo();
  34. void LoadModifications();
  35. void LoadRevisions();
  36. // Parsing helper classes.
  37. class InfoParser;
  38. class RevnoParser;
  39. class LogParser;
  40. class UpdateParser;
  41. class StatusParser;
  42. friend class InfoParser;
  43. friend class RevnoParser;
  44. friend class LogParser;
  45. friend class UpdateParser;
  46. friend class StatusParser;
  47. };
  48. #endif