Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
notsubscribed_state.h
1#ifndef NOTSUBSCRIBED_STATE_H
2#define NOTSUBSCRIBED_STATE_H
3
4#include "../../../helper/machine_state.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace pubsub
13 {
14 namespace fsm
15 {
17 class NotSubscribedState : public helper::MachineState<helper::PubSubState>
18 {
19 protected:
20 void Deactivate(helper::PubSubState nextState) override;
21
22 public:
23 NotSubscribedState() noexcept;
24
25 NotSubscribedState(const NotSubscribedState &) = delete;
26 NotSubscribedState &operator=(const NotSubscribedState &) = delete;
27
28 void Activate(helper::PubSubState previousState) override;
29
31 void Subscribed();
32
34 void Stopped();
35 };
36 }
37 }
38 }
39 }
40}
41
42#endif
Machine state abstract class.
Definition: machine_state.h:46
Machine state in which the service is up but has no subscriber.
Definition: notsubscribed_state.h:18
void Subscribed()
Notify that a new client has subscribed to the server.
Definition: notsubscribed_state.cpp:22
void Deactivate(helper::PubSubState nextState) override
Deactivating the current state before transiting to the next state.
Definition: notsubscribed_state.cpp:32
void Activate(helper::PubSubState previousState) override
Activate the state.
Definition: notsubscribed_state.cpp:17
void Stopped()
Notify that the server has been stopped.
Definition: notsubscribed_state.cpp:27
PubSubState
Publish-subscribe server machine state.
Definition: machine_state.h:35