#include #include #include int main( int argc, char* argv[] ) { if( argc < 2 ) { std::cerr << "Usage: " << argv[ 0 ] << " plugins_file" << std::endl; return( 1 ); } // fi std::string plugins_file = argv[ 1 ]; // Create interface typedef cpPlugins::Interface::Interface TInterface; typedef TInterface::TClasses TClasses; TInterface plugins; plugins.Load( plugins_file ); std::cout << "---------------------------------------------" << std::endl; std::cout << "Loaded classes:" << std::endl; TClasses::const_iterator cIt = plugins.GetClasses( ).begin( ); TClasses::const_iterator end_cIt = plugins.GetClasses( ).end( ); for( ; cIt != end_cIt; ++cIt ) std::cout << "\t:= " << cIt->first << std::endl; std::cout << "---------------------------------------------" << std::endl; return( 0 ); } // eof - $RCSfile$