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 filters
30 auto filters = interface.GetFilters( );
31 for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt )
33 std::cout << "Category: " << cIt->first << std::endl;
34 for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt )
36 << "\tFilter: " << *nIt