cmParseDelphiCoverage.h 1.3 KB

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