ImFusion C++ SDK 4.4.0
ImFusion::PluginAutoRegistrationGuard Class Reference

#include <ImFusion/Core/Plugin.h>

Helper class to automatically register a plugin when the OS loads a library. More...

Detailed Description

Helper class to automatically register a plugin when the OS loads a library.

Don't use directly but use the IMFUSION_REGISTER_PLUGIN() macro instead.

Public Types

using PluginIdFunction = const char* (*)()
 Typedef for a pointer to a function that returns the unique plugin ID.

Public Member Functions

 PluginAutoRegistrationGuard (PluginIdFunction pluginIdFunctionPointer)

Constructor & Destructor Documentation

◆ PluginAutoRegistrationGuard()

ImFusion::PluginAutoRegistrationGuard::PluginAutoRegistrationGuard ( PluginIdFunction pluginIdFunctionPointer)
Parameters
pluginIdFunctionPointerPointer the the static PluginBase::id() function. Technically, could be any function pointer that resides in the plugin's shared library.

The documentation for this class was generated from the following file:
  • ImFusion/Core/Plugin.h
Search Tab / S to search, Esc to close