nx_metadata_sdk 1.0 Metadata SDK

i_plugin.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <nx/sdk/interface.h>
6
7 namespace nx {
8 namespace sdk {
9
10 class IUtilityProvider;
11
24 class IPlugin: public Interface<IPlugin>
25 {
26 public:
27 static auto interfaceId() { return makeId("nx::sdk::IPlugin"); }
28
30 static constexpr const char* kEntryPointFuncName = "createNxPlugin";
31
33 typedef IPlugin* (*EntryPointFunc)();
34
41 virtual void setUtilityProvider(IUtilityProvider* utilityProvider) = 0;
42 };
43
44 } // namespace sdk
45 } // namespace nx
nx::sdk::Interface
Definition: interface.h:28
nx::sdk::IPlugin::kEntryPointFuncName
static constexpr const char * kEntryPointFuncName
Definition: i_plugin.h:30
nx::sdk::IPlugin::setUtilityProvider
virtual void setUtilityProvider(IUtilityProvider *utilityProvider)=0
nx::sdk::IPlugin
Definition: i_plugin.h:24
nx::sdk::IUtilityProvider
Definition: i_utility_provider.h:22
nx
Definition: apple_utils.h:6
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:78