# LoaderFileTypeRegistry

from pandac.PandaModules import LoaderFileTypeRegistry

Class : LoaderFileTypeRegistry
Description : This class maintains the set of all known LoaderFileTypes in the universe.

## Inheritance:

LoaderFileTypeRegistry:

## Methods of LoaderFileTypeRegistry:

getGlobalPtr
getNumTypes
getType
getTypeFromExtension
write

getGlobalPtr static LoaderFileTypeRegistry *LoaderFileTypeRegistry::get_global_ptr(void); Description: Returns a pointer to the global LoaderFileTypeRegistry object.

getNumTypes int LoaderFileTypeRegistry::get_num_types(void) const; Description: Returns the total number of types registered.

getType LoaderFileType *LoaderFileTypeRegistry::get_type(int n) const; Description: Returns the nth type registered.

getTypeFromExtension LoaderFileType *LoaderFileTypeRegistry::get_type_from_extension(string const &extension); Description: Determines the type of the file based on the indicated extension (without a leading dot). Returns NULL if the extension matches no known file types.

write void LoaderFileTypeRegistry::write(ostream &out, int indent_level = (0)) const; Description: Writes a list of supported file types to the indicated output stream, one per line.