2 #include <cpPlugins/Interface.h>
4 int main( int argc, char* argv[] )
8 std::cerr << "Usage: " << argv[ 0 ] << " plugins_libraries_dir" << std::endl;
14 cpPlugins::Interface interface;
17 interface.LoadPluginDir( argv[ 1 ] );
19 catch( std::exception& err )
21 std::cerr << "Error caught: " << err.what( ) << std::endl;
26 // Show loaded filters
27 auto filters = interface.GetFilters( );
28 for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt )
30 std::cout << "Category: " << cIt->first << std::endl;
31 for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt )
33 << "\tFilter: " << *nIt