#include #include int main( int argc, char* argv[] ) { // Manage inputs if( argc < 2 ) { std::cerr << "Usage: " << argv[ 0 ] << " directory" << std::endl; return( 1 ); } // fi std::string directory = argv[ 1 ]; // Create interface and load library cpPlugins::Interface interface; try { interface.LoadEnvironments( ); interface.LoadDirectory( directory ); } catch( std::exception& err ) { std::cerr << "Error caught: " << err.what( ) << std::endl; return( 1 ); } // yrt // Show data std::cout << "----- PATHS -----" << std::endl; auto paths = interface.GetPaths( ); for( auto paIt = paths.begin( ); paIt != paths.end( ); ++paIt ) std::cout << *paIt << std::endl; std::cout << std::endl << "----- PLUGINS -----" << std::endl; auto plugins = interface.GetPlugins( ); for( auto plIt = plugins.begin( ); plIt != plugins.end( ); ++plIt ) std::cout << *plIt << std::endl; std::cout << std::endl << "----- FILTERS -----" << std::endl; auto categories = interface.GetCategories( ); for( auto cIt = categories.begin( ); cIt != categories.end( ); ++cIt ) { std::cout << "\t** Category: " << *cIt << " **" << std::endl; auto filters = interface.GetFilters( *cIt ); for( auto fIt = filters.begin( ); fIt != filters.end( ); ++fIt ) std::cout << "\t\tFilter: " << *fIt << std::endl; } // rof // Finish return( 0 ); } // eof - $RCSfile$