]> Creatis software - cpPlugins.git/blobdiff - appli/bash/cpPlugins_HostCreator.cxx
...
[cpPlugins.git] / appli / bash / cpPlugins_HostCreator.cxx
index 67212714e93b2160845abb6d47dea7edc2deaa68..ee11adf24c667c3453baca007f984d2c88f88c46 100644 (file)
@@ -117,25 +117,14 @@ int main( int argc, char* argv[] )
   // Write access function
   out_stream
     << "extern \"C\" std::map< std::string, std::set< std::string > > "
-    << "LoadedFilters( )" << std::endl << "{" << std::endl
+    << "cpPlugins_LoadedFilters( )" << std::endl << "{" << std::endl
     << "  std::map< std::string, std::set< std::string > > classes;"
     << std::endl;
-  int i = 0;
   for( auto iIt = info.begin( ); iIt != info.end( ); ++iIt )
-  {
     for( auto jIt = iIt->second.begin( ); jIt != iIt->second.end( ); ++jIt )
-    {
       out_stream
-        << "  auto f" << i << " = "
-        << jIt->second << "::" << jIt->first
-        << "::New( );" << std::endl
-        << "  classes[ f" << i << "->GetClassCategory( ) ].insert( "
-        << "f" << i << "->GetClassName( ) );" << std::endl;
-      i++;
-
-    } // rof
-
-  } // rof
+        << "  classes[ \"" << iIt->first
+        << "\" ].insert( \"" << jIt->first << "\" );" << std::endl;
   out_stream
     << "  return( classes );" << std::endl
     << "}" << std::endl << std::endl;