cmCTestBZR.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestBZR_h
  11. #define cmCTestBZR_h
  12. #include "cmCTestGlobalVC.h"
  13. /** \class cmCTestBZR
  14. * \brief Interaction with bzr command-line tool
  15. *
  16. */
  17. class cmCTestBZR: public cmCTestGlobalVC
  18. {
  19. public:
  20. /** Construct with a CTest instance and update log stream. */
  21. cmCTestBZR(cmCTest* ctest, std::ostream& log);
  22. virtual ~cmCTestBZR();
  23. private:
  24. // Implement cmCTestVC internal API.
  25. virtual void NoteOldRevision();
  26. virtual void NoteNewRevision();
  27. virtual bool UpdateImpl();
  28. // URL of repository directory checked out in the working tree.
  29. std::string URL;
  30. std::string LoadInfo();
  31. void LoadModifications();
  32. void LoadRevisions();
  33. // Parsing helper classes.
  34. class InfoParser;
  35. class RevnoParser;
  36. class LogParser;
  37. class UpdateParser;
  38. class StatusParser;
  39. friend class InfoParser;
  40. friend class RevnoParser;
  41. friend class LogParser;
  42. friend class UpdateParser;
  43. friend class StatusParser;
  44. };
  45. #endif