cmParseDelphiCoverage.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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, cmCTest* ctest);
  25. bool LoadCoverageData(const std::vector<std::string> files);
  26. bool ReadDelphiHTML(const char* file);
  27. // Read a single HTML file from output
  28. bool ReadHTMLFile(const char* f);
  29. protected:
  30. class HTMLParser;
  31. cmCTestCoverageHandlerContainer& Coverage;
  32. cmCTest* CTest;
  33. };
  34. #endif