cmParseDelphiCoverage.h 1.3 KB

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