Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LoaderFileTypeRegistry Class Reference

This class maintains the set of all known LoaderFileTypes in the universe. More...

#include <pandadoc.hpp>

Public Member Functions

 __init__ (const LoaderFileTypeRegistry)
 
object __reduce__ ()
 
int getNumTypes ()
 Returns the total number of types registered.
 
LoaderFileType getType (int n)
 Returns the nth type registered.
 
LoaderFileType getTypeFromExtension (str extension)
 Determines the type of the file based on the indicated extension (without a leading dot).
 
list getTypes ()
 
 registerDeferredType (object entry_point)
 
 registerType (object type)
 
 unregisterType (object type)
 
 write (Ostream out, int indent_level)
 Writes a list of supported file types to the indicated output stream, one per line.
 

Static Public Member Functions

static LoaderFileTypeRegistry getGlobalPtr ()
 Returns a pointer to the global LoaderFileTypeRegistry object.
 

Public Attributes

LoaderFileType types []
 Returns the nth type registered.
 

Detailed Description

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

Member Function Documentation

◆ __init__()

__init__ ( const LoaderFileTypeRegistry )

◆ __reduce__()

object __reduce__ ( )

◆ getGlobalPtr()

static LoaderFileTypeRegistry getGlobalPtr ( )
static

Returns a pointer to the global LoaderFileTypeRegistry object.

◆ getNumTypes()

int getNumTypes ( )

Returns the total number of types registered.

◆ getType()

LoaderFileType getType ( int n)

Returns the nth type registered.

◆ getTypeFromExtension()

LoaderFileType getTypeFromExtension ( str extension)

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.

◆ getTypes()

list getTypes ( )

◆ registerDeferredType()

registerDeferredType ( object entry_point)

◆ registerType()

registerType ( object type)

◆ unregisterType()

unregisterType ( object type)

◆ write()

write ( Ostream out,
int indent_level )

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

Member Data Documentation

◆ types

LoaderFileType types[]

Returns the nth type registered.