14 #ifndef PNMFILETYPEREGISTRY_H
15 #define PNMFILETYPEREGISTRY_H
39 int get_num_types()
const;
41 MAKE_SEQ(get_types, get_num_types, get_type);
42 MAKE_SEQ_PROPERTY(types, get_num_types, get_type);
44 PNMFileType *get_type_from_extension(
const std::string &filename)
const;
45 PNMFileType *get_type_from_magic_number(
const std::string &magic_number)
const;
48 void write(std::ostream &out,
int indent_level = 0)
const;
53 void sort_preferences();
This class maintains the set of all known PNMFileTypes in the universe.
This is the base class of a family of classes that represent particular image file types that PNMImag...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.