]> Creatis software - cpPlugins.git/blobdiff - tools/PrintDirInfo.cxx
Moved to version 1.0
[cpPlugins.git] / tools / PrintDirInfo.cxx
diff --git a/tools/PrintDirInfo.cxx b/tools/PrintDirInfo.cxx
deleted file mode 100644 (file)
index 0c00f79..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#include <iostream>
-#include <cpPlugins/Interface/Loader.h>
-
-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$