cmCTestCVS.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 cmCTestCVS_h
  14. #define cmCTestCVS_h
  15. #include "cmCTestVC.h"
  16. /** \class cmCTestCVS
  17. * \brief Interaction with cvs command-line tool
  18. *
  19. */
  20. class cmCTestCVS: public cmCTestVC
  21. {
  22. public:
  23. /** Construct with a CTest instance and update log stream. */
  24. cmCTestCVS(cmCTest* ctest, std::ostream& log);
  25. virtual ~cmCTestCVS();
  26. private:
  27. // Implement cmCTestVC internal API.
  28. virtual bool UpdateImpl();
  29. virtual bool WriteXMLUpdates(std::ostream& xml);
  30. // Update status for files in each directory.
  31. class Directory: public std::map<cmStdString, PathStatus> {};
  32. std::map<cmStdString, Directory> Dirs;
  33. std::string ComputeBranchFlag(std::string const& dir);
  34. void LoadRevisions(std::string const& file, const char* branchFlag,
  35. std::vector<Revision>& revisions);
  36. void WriteXMLDirectory(std::ostream& xml, std::string const& path,
  37. Directory const& dir);
  38. // Parsing helper classes.
  39. class UpdateParser;
  40. class LogParser;
  41. friend class UpdateParser;
  42. friend class LogParser;
  43. };
  44. #endif