]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/LoadDirectory.cxx
...
[cpPlugins.git] / appli / examples / plugins / LoadDirectory.cxx
diff --git a/appli/examples/plugins/LoadDirectory.cxx b/appli/examples/plugins/LoadDirectory.cxx
deleted file mode 100644 (file)
index 17930a3..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <iostream>
-#include <cpPlugins/Interface/Plugins.h>
-
-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
-  typedef cpPlugins::Interface::Plugins TPlugins;
-  TPlugins::Pointer interface = TPlugins::New( );
-  try
-  {
-    interface->LoadEnvironments( );
-    interface->LoadDirectory( directory );
-  }
-  catch( std::exception& err )
-  {
-    std::cerr << "Error caught: " << err.what( ) << std::endl;
-    return( 1 );
-
-  } // yrt
-
-  // Show data and finish
-  interface->Print( std::cout );
-  return( 0 );
-}
-
-// eof - $RCSfile$