2 #include <cpPlugins/Interface/Plugins.h>
4 int main( int argc, char* argv[] )
9 std::cerr << "Usage: " << argv[ 0 ] << " directory" << std::endl;
13 std::string directory = argv[ 1 ];
15 // Create interface and load library
16 cpPlugins::Interface::Plugins::Pointer interface =
17 cpPlugins::Interface::Plugins::New( );
20 interface->LoadEnvironments( );
21 interface->LoadDirectory( directory );
23 catch( std::exception& err )
25 std::cerr << "Error caught: " << err.what( ) << std::endl;
30 // Show data and finish
31 interface->Print( std::cout );