Skip to content
Snippets Groups Projects
Commit e6e12713 authored by athatheocsd's avatar athatheocsd
Browse files

added enums and setters

parent 2da83c0f
No related branches found
No related tags found
No related merge requests found
...@@ -9,15 +9,24 @@ ...@@ -9,15 +9,24 @@
* status * status
*/ */
class EventActionService : public Service { class EventActionService : public Service {
/**
* @todo: check if this should be private or not
*/
private:
uint8_t eventActionStatus;
uint8_t eventActionFunctionStatus;
public: public:
EventActionService() { EventActionService() {
serviceType = 19; serviceType = 19;
eventActionStatus = EventActionStatus::enabled;
eventActionFunctionStatus = EventActionFunctionStatus::enabledFunction;
} }
/** /**
* Event-action status * Event-action status
*/ */
enum eventActionStatus{ enum EventActionStatus{
disabled = 0, disabled = 0,
enabled = 1, enabled = 1,
}; };
...@@ -25,7 +34,7 @@ public: ...@@ -25,7 +34,7 @@ public:
/** /**
* Event-action function status * Event-action function status
*/ */
enum eventActionFunctionStatus { enum EventActionFunctionStatus {
disabledFunction = 1, disabledFunction = 1,
enabledFunction = 0, enabledFunction = 0,
}; };
...@@ -73,6 +82,13 @@ public: ...@@ -73,6 +82,13 @@ public:
* TC[19,9] disable the event-actioni function * TC[19,9] disable the event-actioni function
*/ */
void disableEventActionFunction(Message message); void disableEventActionFunction(Message message);
/**
* Setter for event-action status
*/
void setEventActionStatus(EventActionStatus){
}
}; };
#endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP #endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment