]> Creatis software - cpPlugins.git/blob - appli/examples/plugins/example_GuessPlugins.cxx
...
[cpPlugins.git] / appli / examples / plugins / example_GuessPlugins.cxx
1 #include <iostream>
2 #include <cpPlugins/Interface.h>
3
4 int main( int argc, char* argv[] )
5 {
6   // Load interface
7   cpPlugins::Interface interface;
8   interface.GuessAccesiblePlugins( );
9
10   // Show loaded filters
11   auto filters = interface.GetFilters( );
12   for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt )
13   {
14     std::cout << "Category: " << cIt->first << std::endl;
15     for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt )
16       std::cout
17         << "\tFilter: " << *nIt
18         << std::endl;
19
20   } // rof
21   return( 0 );
22 }
23
24 // eof - $RCSfile$