2 #include <cpPlugins/Interface.h>
4 int main( int argc, char* argv[] )
7 cpPlugins::Interface* interface = NULL;
10 interface = new cpPlugins::Interface( );
11 interface->GuessAccesiblePlugins( );
13 catch( std::exception& err )
15 if( interface != NULL )
25 // Show loaded plugins
26 auto plugins = interface->GetPlugins( );
27 for( auto pIt = plugins.begin( ); pIt != plugins.end( ); ++pIt )
28 std::cout << "Plugin: " << *pIt << std::endl;
29 std::cout << std::endl;
31 // Show loaded filters
32 auto filters = interface->GetFilters( );
33 for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt )
35 std::cout << "Category: " << cIt->first << std::endl;
36 for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt )
38 << "\tFilter: " << *nIt
43 // Free all and finish