PNMFileTypeRegistry

class PNMFileTypeRegistry

This class maintains the set of all known PNMFileTypes in the universe.

Inheritance diagram

digraph inheritance6b8bcc3376 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PNMFileTypeRegistry" [URL="acron.core.PNMFileTypeRegistry.html#acron.core.PNMFileTypeRegistry",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "PNMFileTypeRegistry" [arrowsize=0.75,style=""]; }
PNMFileTypeRegistry.__init__()
static PNMFileTypeRegistry.get_global_ptr()

Returns a pointer to the global PNMFileTypeRegistry object.

PNMFileTypeRegistry.get_num_types()

Returns the total number of types registered.

PNMFileTypeRegistry.get_type()

Returns the nth type registered.

PNMFileTypeRegistry.get_type_by_handle()

Returns the PNMFileType instance stored in the registry for the given TypeHandle, e.g. as retrieved by a previous call to get_type() on the type instance.

PNMFileTypeRegistry.get_type_from_extension()

Tries to determine what the PNMFileType is likely to be for a particular image file based on its extension. Returns a suitable PNMFileType pointer, or NULL if no type can be determined.

PNMFileTypeRegistry.get_type_from_magic_number()

Tries to determine what the PNMFileType is likely to be for a particular image file based on its magic number, the first two bytes read from the file. Returns a suitable PNMFileType pointer, or NULL if no type can be determined.

PNMFileTypeRegistry.write()

Writes a list of supported image file types to the indicated output stream, one per line.