int main()
{
std::list<itk::ObjectFactoryBase *> factories =
const unsigned int numFactories = factories.size();
std::cout << numFactories << " Image IO factories registered:" << std::endl;
if (!factories.empty() )
{
for ( std::list<itk::ObjectFactoryBase*>::iterator
f = factories.begin();
f != factories.end(); ++f )
{
std::istringstream iss( (*f)->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;
}