X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FPrintDirInfo.cxx;fp=tools%2FPrintDirInfo.cxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=0c00f791da54daf4483c6aa151c02e81448e59be;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/tools/PrintDirInfo.cxx b/tools/PrintDirInfo.cxx deleted file mode 100644 index 0c00f79..0000000 --- a/tools/PrintDirInfo.cxx +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include - -int main( int argc, char* argv[] ) -{ - if( argc < 2 ) - { - std::cerr << "Usage: " << argv[ 0 ] << " library" << std::endl; - return( 1 ); - - } // fi - - // Get plugins loader - std::string error_message = ""; - cpPlugins::Interface::Loader loader; - for( int i = 1; i < argc; ++i ) - { - try - { - loader.RegisterFromDirectory( argv[ i ] ); - } - catch( std::exception& err ) - { - error_message += err.what( ) + std::string( "\n" ); - - } // yrt - - } // rof - - if( error_message != "" ) - { - std::cerr - << "***************************************" << std::endl - << "Errors during load: " << std::endl - << error_message << std::endl - << "***************************************" << std::endl; - - } // fi - - // Show loader information - std::cout << "---------------------------" << std::endl; - std::cout << loader << std::endl; - std::cout << "---------------------------" << std::endl; - - // Close connection to loaded plugins file - loader.UnRegisterAll( ); - - // Just a last check - std::cout << "---------------------------" << std::endl; - std::cout << loader << std::endl; - std::cout << "---------------------------" << std::endl; - - return( 0 ); -} - -// eof - $RCSfile$