cmCTestBZR.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCTestBZR_h
  4. #define cmCTestBZR_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestGlobalVC.h"
  7. #include <iosfwd>
  8. #include <string>
  9. class cmCTest;
  10. /** \class cmCTestBZR
  11. * \brief Interaction with bzr command-line tool
  12. *
  13. */
  14. class cmCTestBZR : public cmCTestGlobalVC
  15. {
  16. public:
  17. /** Construct with a CTest instance and update log stream. */
  18. cmCTestBZR(cmCTest* ctest, std::ostream& log);
  19. ~cmCTestBZR() override;
  20. private:
  21. // Implement cmCTestVC internal API.
  22. bool NoteOldRevision() override;
  23. bool NoteNewRevision() override;
  24. bool UpdateImpl() override;
  25. // URL of repository directory checked out in the working tree.
  26. std::string URL;
  27. std::string LoadInfo();
  28. bool LoadModifications() override;
  29. bool LoadRevisions() override;
  30. // Parsing helper classes.
  31. class InfoParser;
  32. class LogParser;
  33. class RevnoParser;
  34. class StatusParser;
  35. class UpdateParser;
  36. friend class InfoParser;
  37. friend class LogParser;
  38. friend class RevnoParser;
  39. friend class UpdateParser;
  40. friend class StatusParser;
  41. };
  42. #endif