From 394448cee5c2896d9c88fb8c2785a00a5ceaea0c Mon Sep 17 00:00:00 2001
From: athatheocsd <athatheo@csd.auth.gr>
Date: Tue, 27 Nov 2018 05:04:54 +0200
Subject: [PATCH] Added parameters and changed some updated the javadoc

---
 inc/Services/EventReportService.hpp | 24 ++++++++++++++++++++----
 src/Services/EventReportService.cpp |  8 ++++----
 2 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/inc/Services/EventReportService.hpp b/inc/Services/EventReportService.hpp
index 78bba12e..dbe06256 100644
--- a/inc/Services/EventReportService.hpp
+++ b/inc/Services/EventReportService.hpp
@@ -22,32 +22,48 @@ public:
 	 * Send report to inform the respective recipients about an event
 	 *
 	 * Note: The parameters are defined by the standard, but the event definition id is missing!
+	 *
+	 * @param eventID event definition ID
+	 * @param data the data of the report
+	 * @param length the length of the data
 	 */
-	void informativeEventReport(const uint8_t *data, uint8_t length);
+	void informativeEventReport(uint16_t eventID, const uint8_t *data, uint8_t length);
 
 	/**
 	 * TM[5,2] low severiity anomaly report
 	 * Send report when there is an anomaly event of low severity to the respective recipients
 	 *
 	 * Note: The parameters are defined by the standard, but the event definition id is missing!
+	 *
+	 * @param eventID event definition ID
+	 * @param data the data of the report
+	 * @param length the length of the data
 	 */
-	void lowSeverityAnomalyReport(const uint8_t *data, uint8_t length);
+	void lowSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length);
 
 	/**
 	 * TM[5,3] medium severity anomaly report
 	 * Send report when there is an anomaly event of medium severity to the respective recipients
 	 *
 	 * Note: The parameters are defined by the standard, but the event definition id is missing!
+	 *
+	 * @param eventID event definition ID
+	 * @param data the data of the report
+	 * @param length the length of the data
 	 */
-	void mediumSeverityAnomalyReport(const uint8_t *data, uint8_t length);
+	void mediumSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length);
 
 	/**
 	 * TM[5,4] high severity anomaly report
 	 * Send report when there is an anomaly event of hgih severity to the respective recipients
 	 *
 	 * Note: The parameters are defined by the standard, but the event definition id is missing!
+	 *
+	 * @param eventID event definition ID
+	 * @param data the data of the report
+	 * @param length the length of the data
 	 */
-	void highSeverityAnomalyReport(const uint8_t *data, uint8_t length);
+	void highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length);
 
 };
 #endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP
diff --git a/src/Services/EventReportService.cpp b/src/Services/EventReportService.cpp
index c47e0395..28d91f59 100644
--- a/src/Services/EventReportService.cpp
+++ b/src/Services/EventReportService.cpp
@@ -1,28 +1,28 @@
 #include "Services/EventReportService.hpp"
 #include "Message.hpp"
 
-void EventReportService::informativeEventReport(const uint8_t *data, uint8_t length){
+void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t *data, uint8_t length){
 	// TM[5,1]
 	Message report = createTM(1);
 
 	storeMessage(report);
 }
 
-void EventReportService::lowSeverityAnomalyReport(const uint8_t *data, uint8_t length){
+void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length){
 	// TM[5,2]
 	Message report = createTM(2);
 
 	storeMessage(report);
 }
 
-void EventReportService::mediumSeverityAnomalyReport(const uint8_t *data, uint8_t length){
+void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length){
 	// TM[5,3]
 	Message report = createTM(3);
 
 	storeMessage(report);
 }
 
-void EventReportService::highSeverityAnomalyReport(const uint8_t *data, uint8_t length){
+void EventReportService::highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length){
 	// TM[5,4]
 	Message report = createTM(4);
 
-- 
GitLab