From 0c6f57a25abdff1d75362cb28be2796a333c56aa Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Tue, 27 Jul 2021 15:49:02 -0400 Subject: Remove AllExplanations global variable - Replaced AllExplanations in app_common with a local variable in covoar() - Added the allExplanations_m member variable to ReportsBase - Added a parameter to ReportsBase and its derived classes' constructors to initialize allExplanations_m - Added parameter to GenerateReports() to pass the variable from covoar() to the constructors for Reports* --- tester/covoar/ReportsBase.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'tester/covoar/ReportsBase.h') diff --git a/tester/covoar/ReportsBase.h b/tester/covoar/ReportsBase.h index 41add8e..a2856e3 100644 --- a/tester/covoar/ReportsBase.h +++ b/tester/covoar/ReportsBase.h @@ -15,6 +15,7 @@ #include #include #include "DesiredSymbols.h" +#include "Explanations.h" namespace Coverage { @@ -26,7 +27,11 @@ namespace Coverage { class ReportsBase { public: - ReportsBase( time_t timestamp, const std::string& symbolSetName ); + ReportsBase( + time_t timestamp, + const std::string& symbolSetName, + Coverage::Explanations& allExplanations + ); virtual ~ReportsBase(); /*! @@ -119,6 +124,11 @@ class ReportsBase { */ time_t timestamp_m; + /*! + * This member variable contains the explanations to report on. + */ + Coverage::Explanations& allExplanations_m; + /*! * This method Opens a report file and verifies that it opened * correctly. Upon failure NULL is returned. @@ -389,8 +399,12 @@ class ReportsBase { * all reports. * * @param[in] symbolSetName is the name of the symbol set to report on. + * @param[in] allExplanations is the explanations to report on. */ -void GenerateReports( const std::string& symbolSetName ); +void GenerateReports( + const std::string& symbolSetName, + Coverage::Explanations& allExplanations +); } -- cgit v1.2.3