15 #ifndef PNMFILETYPEANDROID_H 16 #define PNMFILETYPEANDROID_H 20 #include "pandabase.h" 22 #include "pnmFileType.h" 23 #include "pnmReader.h" 24 #include "pnmWriter.h" 34 class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeAndroid :
public PNMFileType {
38 virtual string get_name()
const;
46 const string &magic_number =
string());
51 Reader(
PNMFileType *type, istream *file,
bool owns_file,
string magic_number);
54 virtual void prepare_read();
55 virtual int read_data(
xel *array, xelval *alpha);
68 static void register_with_read_factory();
77 static void init_type() {
78 PNMFileType::init_type();
79 register_type(_type_handle,
"PNMFileTypeAndroid",
80 PNMFileType::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual string get_extension(int n) const
Returns the nth possible filename extension associated with this particular file type, without a leading dot.
Base class for objects that can be written to and read from Bam files.
This is the base class of a family of classes that represent particular image file types that PNMImag...
virtual PNMReader * make_reader(istream *file, bool owns_file=true, const string &magic_number=string())
Allocates and returns a new PNMReader suitable for reading from this file type, if possible...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is an abstract base class that defines the interface for reading image files of various types...
virtual bool has_magic_number() const
Returns true if this particular file type uses a magic number to identify it, false otherwise...
TypeHandle is the identifier used to differentiate C++ class types.
virtual int get_num_extensions() const
Returns the number of different possible filename extensions associated with this particular file typ...