2 #include <cpPlugins/Interface.h>
4 int main( int argc, char* argv[] )
6 // Create interface and load library
7 cpPlugins::Interface interface;
10 interface.LoadEnvironment( );
11 interface.GuessPlugins( );
13 catch( std::exception& err )
15 std::cerr << "Error caught: " << err.what( ) << std::endl;
21 std::cout << "----- PATHS -----" << std::endl;
22 auto paths = interface.GetPaths( );
23 for( auto paIt = paths.begin( ); paIt != paths.end( ); ++paIt )
24 std::cout << *paIt << std::endl;
25 std::cout << std::endl << "----- PLUGINS -----" << std::endl;
26 auto plugins = interface.GetPlugins( );
27 for( auto plIt = plugins.begin( ); plIt != plugins.end( ); ++plIt )
28 std::cout << *plIt << std::endl;
29 std::cout << std::endl << "----- FILTERS -----" << std::endl;
30 auto categories = interface.GetCategories( );
31 for( auto cIt = categories.begin( ); cIt != categories.end( ); ++cIt )
33 std::cout << "\t** Category: " << *cIt << " **" << std::endl;
34 auto filters = interface.GetFilters( *cIt );
35 for( auto fIt = filters.begin( ); fIt != filters.end( ); ++fIt )
36 std::cout << "\t\tFilter: " << *fIt << std::endl;