int
main()
{
const std::list<itk::ObjectFactoryBase *> & factories =
const size_t numFactories = factories.size();
std::cout << numFactories << " Image IO factories registered:" << std::endl;
if (!factories.empty())
{
for (const auto & factory : factories)
{
std::istringstream iss(factory->GetDescription());
std::string IOType;
iss >> IOType;
std::cout << IOType << " ";
}
std::cout << std::endl;
}
else
{
std::cout << "Failed to load any factories" << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}