Go to the documentation of this file.
23 bool PNMFileType::_did_init_pnm =
false;
55 nassertr(
false,
string());
118 if (!_did_init_pnm) {
119 _did_init_pnm =
true;
virtual PNMWriter * make_writer(std::ostream *file, bool owns_file=true)
Allocates and returns a new PNMWriter suitable for reading from this file type, if possible.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual PNMReader * make_reader(std::istream *file, bool owns_file=true, const std::string &magic_number=std::string())
Allocates and returns a new PNMReader suitable for reading from this file type, if possible.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_suggested_extension
Returns a suitable filename extension (without a leading dot) to suggest for files of this type,...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool matches_magic_number(const std::string &magic_number) const
Returns true if the indicated "magic number" byte stream (the initial few bytes read from the file) m...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_extension
Returns the nth possible filename extension associated with this particular file type,...
This is an abstract base class that defines the interface for reading image files of various types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_num_extensions
Returns the number of different possible filename extensions associated with this particular file typ...
This is an abstract base class that defines the interface for writing 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_datagram(BamWriter *writer, Datagram &datagram)
Fills the indicated datagram up with a binary representation of the current object,...