Skip to content

Commit

Permalink
Inlined methods for EventSubscription to allow multiple includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdornaus committed Nov 20, 2023
1 parent af8d443 commit cc7822e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DashboardClient/IDashboardDataClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ namespace Umati

class EventSubscriptionHandle {
public:
EventSubscriptionHandle(int32_t clientHandle, int32_t subscriptionId) : m_clientHandle(clientHandle), m_subscriptionId(subscriptionId){};
~EventSubscriptionHandle(){};
void unsubscribe() { m_unsubscribed = true; }
bool isUnsubscribed() {return m_unsubscribed;}
int32_t getClientHandle() { return m_clientHandle;}
int32_t getSubscriptionId() { return m_subscriptionId;}
inline EventSubscriptionHandle(int32_t clientHandle, int32_t subscriptionId) : m_clientHandle(clientHandle), m_subscriptionId(subscriptionId){};
inline ~EventSubscriptionHandle(){};
inline void unsubscribe() { m_unsubscribed = true; }
inline bool isUnsubscribed() {return m_unsubscribed;}
inline int32_t getClientHandle() { return m_clientHandle;}
inline int32_t getSubscriptionId() { return m_subscriptionId;}

private:
bool m_unsubscribed = false;
Expand Down

0 comments on commit cc7822e

Please sign in to comment.