+++ /dev/null
-#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$