]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/LoadPluginsFile.cxx
...
[cpPlugins.git] / appli / examples / plugins / LoadPluginsFile.cxx
diff --git a/appli/examples/plugins/LoadPluginsFile.cxx b/appli/examples/plugins/LoadPluginsFile.cxx
deleted file mode 100644 (file)
index 8a3bca2..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-
-#include <cpPlugins/Interface/Plugins.h>
-
-int main( int argc, char* argv[] )
-{
-  // Useful types
-  typedef cpPlugins::Interface::Plugins _TPlugins;
-
-  if( argc < 2 )
-  {
-    std::cerr << "Usage: " << argv[ 0 ] << " library" << std::endl;
-    return( 1 );
-
-  } // fi
-
-  // Load an interface to the plugins system
-  _TPlugins::Pointer plugins = _TPlugins::New( );
-
-  // Guess reachable plugins
-  try
-  {
-    plugins->LoadPluginsFile( argv[ 1 ] );
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << "Error: " << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Show plugins and exit
-  plugins->Print( std::cout );
-  return( 0 );
-}
-
-// eof - $RCSfile$