15 #ifndef PNMFILETYPEREGISTRY_H 16 #define PNMFILETYPEREGISTRY_H 18 #include "pandabase.h" 20 #include "typedObject.h" 41 int get_num_types()
const;
43 MAKE_SEQ(get_types, get_num_types, get_type);
45 PNMFileType *get_type_from_extension(
const string &filename)
const;
46 PNMFileType *get_type_from_magic_number(
const string &magic_number)
const;
49 void write(ostream &out,
int indent_level = 0)
const;
54 void sort_preferences();
60 Extensions _extensions;
This is the base class of a family of classes that represent particular image file types that PNMImag...
This class maintains the set of all known PNMFileTypes in the universe.
TypeHandle is the identifier used to differentiate C++ class types.