]> Creatis software - cpPlugins.git/blob - tools/PrintGuessInfo.cxx
7b50afd53fdf8c32b5885eae73b7b15a2233cb3a
[cpPlugins.git] / tools / PrintGuessInfo.cxx
1 #include <iostream>
2 #include <cpPlugins/Interface/Loader.h>
3 #include <cpPlugins/OS/FileSystem.h>
4
5 int main( int argc, char* argv[] )
6 {
7   // Get plugins loader
8   std::string error_message = "";
9   cpPlugins::Interface::Loader loader;
10   loader.GuessEnvironment( cpPlugins::OS::FileSystem::CanonicalPath( "." ) );
11
12   // Show loader information
13   std::cout << "---------------------------" << std::endl;
14   std::cout << loader << std::endl;
15   std::cout << "---------------------------" << std::endl;
16
17   // Close connection to loaded plugins file
18   loader.UnRegisterAll( );
19
20   // Just a last check
21   std::cout << "---------------------------" << std::endl;
22   std::cout << loader << std::endl;
23   std::cout << "---------------------------" << std::endl;
24
25   return( 0 );
26 }
27
28 // eof - $RCSfile$