summaryrefslogtreecommitdiffstats
path: root/tester/covoar/ReportsBase.h
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 18:56:00 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commitdf75483098df5027edf3e13765959b5f1a86e586 (patch)
treeb7c6dc859355e252ac66f0567932ddc145d476df /tester/covoar/ReportsBase.h
parentRemove projectName global variable (diff)
downloadrtems-tools-df75483098df5027edf3e13765959b5f1a86e586.tar.bz2
Remove outputDirectory global variable
- Replaced outputDirectory in app_common with a local variable in covoar() - Created the outputDirectory_m member variable - Added parameters to Reports* constructors to initialize outputDirectory_m and non member functions
Diffstat (limited to 'tester/covoar/ReportsBase.h')
-rw-r--r--tester/covoar/ReportsBase.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/tester/covoar/ReportsBase.h b/tester/covoar/ReportsBase.h
index 38b7c29..a0c6a32 100644
--- a/tester/covoar/ReportsBase.h
+++ b/tester/covoar/ReportsBase.h
@@ -31,7 +31,8 @@ class ReportsBase {
time_t timestamp,
const std::string& symbolSetName,
Coverage::Explanations& allExplanations,
- const std::string& projectName
+ const std::string& projectName,
+ const std::string& outputDirectory
);
virtual ~ReportsBase();
@@ -87,7 +88,8 @@ class ReportsBase {
*/
static void WriteSummaryReport(
const std::string& fileName,
- const std::string& symbolSetName
+ const std::string& symbolSetName,
+ const std::string& outputDirectory
);
/*!
@@ -136,17 +138,24 @@ class ReportsBase {
std::string projectName_m;
/*!
+ * This variable stores the output directory.
+ */
+ std::string outputDirectory_m = "";
+
+ /*!
* This method Opens a report file and verifies that it opened
* correctly. Upon failure NULL is returned.
*
* @param[in] fileName identifies the report file name
* @param[in] symbolSetName identifies the name of the report's symbol set
* @param[in] aFile identifies the file to open
+ * @param[in] outputDirectory identifies the directory for the output
*/
static void OpenFile(
const std::string& fileName,
const std::string& symbolSetName,
- std::ofstream& aFile
+ std::ofstream& aFile,
+ const std::string& outputDirectory
);
/*!
@@ -408,12 +417,14 @@ class ReportsBase {
* @param[in] allExplanations is the explanations to report on.
* @param[in] verbose specifies whether to be verbose with output
* @param[in] projectName specifies the name of the project
+ * @param[in] outputDirectory specifies the directory for the output
*/
void GenerateReports(
const std::string& symbolSetName,
Coverage::Explanations& allExplanations,
bool verbose,
- const std::string& projectName
+ const std::string& projectName,
+ const std::string& outputDirectory
);
}