summaryrefslogtreecommitdiffstats
path: root/tester/covoar/ReportsBase.h
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 15:49:02 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commit0c6f57a25abdff1d75362cb28be2796a333c56aa (patch)
tree1c97e3c14b0a33a590af2c4eb7d8ae414f675fdd /tester/covoar/ReportsBase.h
parentReportsText.cc: Restore ostream format (diff)
downloadrtems-tools-0c6f57a25abdff1d75362cb28be2796a333c56aa.tar.bz2
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*
Diffstat (limited to 'tester/covoar/ReportsBase.h')
-rw-r--r--tester/covoar/ReportsBase.h18
1 files changed, 16 insertions, 2 deletions
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 <fstream>
#include <time.h>
#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();
/*!
@@ -120,6 +125,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
+);
}