1#ifndef SUBSCRIBED_STATE_H
2#define SUBSCRIBED_STATE_H
5#include "../../../helper/machine_state.h"
21 int32_t mSubscriptionCounter;
Machine state abstract class.
Definition: machine_state.h:46
Machine state in which the service is up and it has at least a subscriber.
Definition: subscribed_state.h:19
void Deactivate(helper::PubSubState nextState) override
Deactivating the current state before transiting to the next state.
Definition: subscribed_state.cpp:42
SubscribedState() noexcept
Default constructor.
Definition: subscribed_state.cpp:13
void Unsubscribed()
Notify that a new client has unsubscribed from the server.
Definition: subscribed_state.cpp:27
void Stopped()
Notify that the server has been stopped.
Definition: subscribed_state.cpp:37
void Subscribed() noexcept
Notify that a new client has subscribed to the server.
Definition: subscribed_state.cpp:22
void Activate(helper::PubSubState previousState) override
Activate the state.
Definition: subscribed_state.cpp:17
PubSubState
Publish-subscribe server machine state.
Definition: machine_state.h:35