cmParseCacheCoverage.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 cmParseCacheCoverage_h
  11. #define cmParseCacheCoverage_h
  12. #include <cmConfigure.h>
  13. #include "cmParseMumpsCoverage.h"
  14. #include <string>
  15. #include <vector>
  16. class cmCTest;
  17. class cmCTestCoverageHandlerContainer;
  18. /** \class cmParseCacheCoverage
  19. * \brief Parse Cache coverage information
  20. *
  21. * This class is used to parse Cache coverage information for
  22. * mumps.
  23. */
  24. class cmParseCacheCoverage : public cmParseMumpsCoverage
  25. {
  26. public:
  27. cmParseCacheCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
  28. protected:
  29. // implement virtual from parent
  30. bool LoadCoverageData(const char* dir) CM_OVERRIDE;
  31. // remove files with no coverage
  32. void RemoveUnCoveredFiles();
  33. // Read a single mcov file
  34. bool ReadCMCovFile(const char* f);
  35. // split a string based on ,
  36. bool SplitString(std::vector<std::string>& args, std::string const& line);
  37. };
  38. #endif