From e6e127137b445d498b103e292fe356af721875bb Mon Sep 17 00:00:00 2001 From: athatheocsd <athatheo@csd.auth.gr> Date: Sun, 16 Dec 2018 19:58:22 +0200 Subject: [PATCH] added enums and setters --- inc/Services/EventActionService.hpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/inc/Services/EventActionService.hpp b/inc/Services/EventActionService.hpp index c333a437..d4101431 100644 --- a/inc/Services/EventActionService.hpp +++ b/inc/Services/EventActionService.hpp @@ -9,15 +9,24 @@ * status */ class EventActionService : public Service { +/** + * @todo: check if this should be private or not + */ +private: + uint8_t eventActionStatus; + uint8_t eventActionFunctionStatus; public: EventActionService() { serviceType = 19; + eventActionStatus = EventActionStatus::enabled; + eventActionFunctionStatus = EventActionFunctionStatus::enabledFunction; } + /** * Event-action status */ - enum eventActionStatus{ + enum EventActionStatus{ disabled = 0, enabled = 1, }; @@ -25,7 +34,7 @@ public: /** * Event-action function status */ - enum eventActionFunctionStatus { + enum EventActionFunctionStatus { disabledFunction = 1, enabledFunction = 0, }; @@ -73,6 +82,13 @@ public: * TC[19,9] disable the event-actioni function */ void disableEventActionFunction(Message message); + + /** + * Setter for event-action status + */ + void setEventActionStatus(EventActionStatus){ + + } }; #endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP -- GitLab