This example shows how to test interface and plugin.
#include <loaders/dynamic_lib_loader.h> #include <utilities/plugin_interface.h> #include <iostream> class Base1{}; class Derived1 : public Base1{}; class Derived3 : public Base1{}; int main( int argc , char * argv[] ) { nitro::DynamicLibLoader Plugin( "./plugin.dll" ); std::cout<<nitro::PluginInterface::InterfaceEported< Derived1 >( Plugin )<<std::endl; std::cout<<nitro::PluginInterface::InterfaceEported< Derived3 >( Plugin )<<std::endl; return 0; }