2 #include <cpPlugins/Interface.h>
4 int main( int argc, char* argv[] )
8 std::cerr << "Usage: " << argv[ 0 ] << " plugins_library" << std::endl;
14 cpPlugins::Interface interface;
17 interface.LoadPluginFile( argv[ 1 ] );
19 catch( std::exception& err )
29 // Show loaded plugins
30 auto plugins = interface.GetPlugins( );
31 for( auto pIt = plugins.begin( ); pIt != plugins.end( ); ++pIt )
32 std::cout << "Plugin: " << *pIt << std::endl;
33 std::cout << std::endl;
35 // Show loaded filters
36 auto filters = interface.GetFilters( );
37 for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt )
39 std::cout << "Category: " << cIt->first << std::endl;
40 for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt )
42 << "\tFilter: " << *nIt