2 #include <cpPlugins/Interface/Loader.h>
3 #include <cpPlugins/OS/FileSystem.h>
4 #include <cpPlugins/Interface/Workspace.h>
6 int main( int argc, char* argv[] )
11 << "Usage: " << argv[ 0 ] << " workspace"
18 cpPlugins::Interface::Loader loader;
19 loader.GuessEnvironment( cpPlugins::OS::FileSystem::CanonicalPath( "." ) );
25 cpPlugins::Interface::Workspace::Pointer workspace =
26 cpPlugins::Interface::Workspace::New( );
27 workspace->Load( argv[ 1 ] );
30 workspace->PrintExecutionOn( );
33 catch( std::exception& err )
35 std::cerr << "Error caught: " << err.what( ) << std::endl;
40 // Close connection to loaded plugins file and finish execution
41 loader.UnRegisterAll( );