summaryrefslogtreecommitdiff
path: root/src/CommonAPI/Stub.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/Stub.h')
-rw-r--r--src/CommonAPI/Stub.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/CommonAPI/Stub.h b/src/CommonAPI/Stub.h
index f09790b..a22ae3c 100644
--- a/src/CommonAPI/Stub.h
+++ b/src/CommonAPI/Stub.h
@@ -29,7 +29,8 @@ public:
virtual const std::string& getInstanceId() const = 0;
};
-struct StubBase {
+class StubBase {
+public:
virtual ~StubBase() {
}
};
@@ -37,7 +38,7 @@ struct StubBase {
template<typename _StubAdapter, typename _StubRemoteEventHandler>
class Stub: public virtual StubBase {
static_assert(std::is_base_of<StubAdapter, _StubAdapter>::value, "Invalid StubAdapter Class!");
- public:
+public:
typedef _StubAdapter StubAdapterType;
typedef _StubRemoteEventHandler RemoteEventHandlerType;
@@ -48,9 +49,9 @@ class Stub: public virtual StubBase {
virtual const std::shared_ptr<_StubAdapter> getStubAdapter() {
return stubAdapter_;
}
- protected:
- std::shared_ptr<_StubAdapter> stubAdapter_;
+protected:
+ std::shared_ptr<_StubAdapter> stubAdapter_;
};
enum SelectiveBroadcastSubscriptionEvent {