4 #include <cpPlugins/Interface/Interface.h>
6 // -------------------------------------------------------------------------
7 typedef cpPlugins::Interface::Interface TInterface;
9 // -------------------------------------------------------------------------
10 int main( int argc, char* argv[] )
14 std::cerr << "Usage: " << argv[ 0 ] << " plugins_file(s)" << std::endl;
19 // Create interface and load plugins
21 interface.LoadFromFolder( argv[ 1 ], true );
24 auto i = interface.GetLoadedPlugins( ).begin( );
25 for( ; i != interface.GetLoadedPlugins( ).end( ); ++i )
27 std::cout << "Folder: " << i->first << std::endl;
28 auto j = i->second.begin( );
29 for( ; j != i->second.end( ); ++j )
30 std::cout << "\tPlugin: " << *j << std::endl;
34 // Show loaded classes
35 auto c = interface.GetClasses( ).begin( );
36 for( ; c != interface.GetClasses( ).end( ); ++c )
37 std::cout << "Class -> " << c->first << std::endl;