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
22 for( int i = 1; i < argc; ++i )
23 if( !interface.Load( argv[ i ] ) )
25 << "Error loading plugins file \""
30 auto i = interface.GetLoadedPlugins( ).begin( );
31 for( ; i != interface.GetLoadedPlugins( ).end( ); ++i )
33 std::cout << "Folder: " << i->first << std::endl;
34 auto j = i->second.begin( );
35 for( ; j != i->second.end( ); ++j )
36 std::cout << "\tPlugin: " << *j << std::endl;
40 // Show loaded classes
41 auto c = interface.GetClasses( ).begin( );
42 for( ; c != interface.GetClasses( ).end( ); ++c )
43 std::cout << "Class -> " << c->first << std::endl;