From cc7822e999213f366023f544b3a14d0d2cfd9e7e Mon Sep 17 00:00:00 2001 From: mdornaus Date: Thu, 6 Apr 2023 14:46:36 +0200 Subject: [PATCH] Inlined methods for EventSubscription to allow multiple includes. --- DashboardClient/IDashboardDataClient.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DashboardClient/IDashboardDataClient.hpp b/DashboardClient/IDashboardDataClient.hpp index 6208061d..923129a7 100644 --- a/DashboardClient/IDashboardDataClient.hpp +++ b/DashboardClient/IDashboardDataClient.hpp @@ -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;