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
27 class IPlugin: public Interface<IPlugin>
28 {
29 public:
30 static auto interfaceId() { return makeId("nx::sdk::IPlugin"); }
31
38 typedef IPlugin* (*EntryPointFunc)();
39
41 static constexpr const char* kEntryPointFuncName = "createNxPlugin";
42
53 typedef IPlugin* (*MultiEntryPointFunc)(int instanceIndex);
54
56 static constexpr const char* kMultiEntryPointFuncName = "createNxPluginByIndex";
57
64 virtual void setUtilityProvider(IUtilityProvider* utilityProvider) = 0;
65 };
66 using IPlugin0 = IPlugin;
67
68 } // namespace sdk
69 } // namespace nx
nx::sdk::IPlugin::kMultiEntryPointFuncName
static constexpr const char * kMultiEntryPointFuncName
Definition: i_plugin.h:56
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::IPlugin::kEntryPointFuncName
static constexpr const char * kEntryPointFuncName
Definition: i_plugin.h:41
nx::sdk::IPlugin::setUtilityProvider
virtual void setUtilityProvider(IUtilityProvider *utilityProvider)=0
nx::sdk::IPlugin
Definition: i_plugin.h:27
nx::sdk::IUtilityProvider
Definition: i_utility_provider.h:61
nx
Definition: apple_utils.h:6
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77