45int main (
int argc,
char **argv)
49 ATH_MSG_ERROR (
"usage: " << argv[0] <<
" <module path> <output file>");
53 const std::string modulePathName = argv[1];
54 const std::string outputFile = argv[2];
56 std::string modulePath, moduleName;
58 const auto pos = modulePathName.find_last_of (
'/');
59 if (pos != std::string::npos)
61 modulePath = modulePathName.substr (0, pos);
62 moduleName = modulePathName.substr (pos + 1);
67 moduleName = modulePathName;
71 if (
auto types = getLoadedComponentFactoryTypes (); !
types.empty())
79 ATH_MSG_DEBUG (
"loading component factory preloader module from " << modulePath <<
" with name " << moduleName);
80 loadComponentFactoryModule (moduleName, modulePath);
82 std::ofstream outputStream (outputFile);
83 for (
auto&
type : getLoadedComponentFactoryTypes ())
86 outputStream << moduleName <<
" " <<
type <<
"\n";