1
0

cmParseDelphiCoverage.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 cmParseDelphiCoverage_h
  11. #define cmParseDelphiCoverage_h
  12. #include <cmConfigure.h> // IWYU pragma: keep
  13. #include <string>
  14. #include <vector>
  15. class cmCTest;
  16. class cmCTestCoverageHandlerContainer;
  17. /** \class cmParseDelphiCoverage
  18. * \brief Parse Delphi coverage information
  19. *
  20. * This class is used to parse Delphi(Pascal) coverage information
  21. * generated by the Delphi-Code-Coverage tool
  22. *
  23. * https://code.google.com/p/delphi-code-coverage/
  24. */
  25. class cmParseDelphiCoverage
  26. {
  27. public:
  28. cmParseDelphiCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
  29. bool LoadCoverageData(std::vector<std::string> const& files);
  30. bool ReadDelphiHTML(const char* file);
  31. // Read a single HTML file from output
  32. bool ReadHTMLFile(const char* f);
  33. protected:
  34. class HTMLParser;
  35. cmCTestCoverageHandlerContainer& Coverage;
  36. cmCTest* CTest;
  37. };
  38. #endif