]> Creatis software - cpPlugins.git/blob - appli/examples/plugins/GuessPlugins.cxx
...
[cpPlugins.git] / appli / examples / plugins / GuessPlugins.cxx
1 #include <iostream>
2 #include <cpPlugins/Interface/Plugins.h>
3
4 int main( int argc, char* argv[] )
5 {
6   // Create interface and load library
7   typedef cpPlugins::Interface::Plugins TPlugins;
8   TPlugins::Pointer interface = TPlugins::New( );
9   try
10   {
11     interface->LoadEnvironments( );
12     interface->GuessPlugins( );
13   }
14   catch( std::exception& err )
15   {
16     std::cerr << "Error caught: " << err.what( ) << std::endl;
17     return( 1 );
18
19   } // yrt
20
21   // Show data and finish
22   interface->Print( std::cout );
23   return( 0 );
24 }
25
26 // eof - $RCSfile$