#include #include int main( int argc, char* argv[] ) { if( argc < 2 ) { std::cerr << "Usage: " << argv[ 0 ] << " plugins_libraries" << std::endl; return( 1 ); } // fi // Load interface cpPlugins::Interface interface; for( int i = 1; i < argc; ++i ) { try { interface.LoadPluginFile( argv[ i ] ); } catch( ... ) { } // yrt } // rof // Show loaded filters auto filters = interface.GetFilters( ); for( auto cIt = filters.begin( ); cIt != filters.end( ); ++cIt ) { std::cout << "Category: " << cIt->first << std::endl; for( auto nIt = cIt->second.begin( ); nIt != cIt->second.end( ); ++nIt ) std::cout << "\tFilter: " << *nIt << std::endl; } // rof return( 0 ); } // eof - $RCSfile$