Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PNMFileTypeTIFF Class Reference

#include <pnmFileTypeTIFF.h>

Inheritance diagram for PNMFileTypeTIFF:

PNMFileType TypedWritable TypedObject List of all members.

Public Member Functions

 PNMFileTypeTIFF ()
virtual string get_name () const
virtual int get_num_extensions () const
virtual string get_extension (int n) const
virtual string get_suggested_extension () const
virtual bool has_magic_number () const
virtual bool matches_magic_number (const string &magic_number) const
virtual PNMReadermake_reader (istream *file, bool owns_file=true, const string &magic_number=string())
virtual PNMWritermake_writer (ostream *file, bool owns_file=true)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Static Protected Member Functions

TypedWritablemake_PNMFileTypeTIFF (const FactoryParams &params)

Static Private Member Functions

void install_error_handlers ()
void tiff_warning (const char *module, const char *format, va_list ap)
void tiff_error (const char *module, const char *format, va_list ap)

Static Private Attributes

bool _installed_error_handlers = false
TypeHandle _type_handle

Constructor & Destructor Documentation

PNMFileTypeTIFF::PNMFileTypeTIFF  ) 
 

Definition at line 210 of file pnmFileTypeTIFF.cxx.


Member Function Documentation

virtual TypeHandle PNMFileTypeTIFF::force_init_type void   )  [inline, virtual]
 

Reimplemented from PNMFileType.

Definition at line 105 of file pnmFileTypeTIFF.h.

References PNMFileType::get_class_type(), and PNMFileType::init_type().

TypeHandle PNMFileTypeTIFF::get_class_type void   )  [inline, static]
 

Reimplemented from PNMFileType.

Definition at line 94 of file pnmFileTypeTIFF.h.

Referenced by make_PNMFileTypeTIFF(), and register_with_read_factory().

string PNMFileTypeTIFF::get_extension int  n  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 242 of file pnmFileTypeTIFF.cxx.

References extensions_tiff, n, and num_extensions_tiff.

string PNMFileTypeTIFF::get_name  )  const [virtual]
 

Implements PNMFileType.

Definition at line 219 of file pnmFileTypeTIFF.cxx.

int PNMFileTypeTIFF::get_num_extensions  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 230 of file pnmFileTypeTIFF.cxx.

References num_extensions_tiff.

string PNMFileTypeTIFF::get_suggested_extension  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 255 of file pnmFileTypeTIFF.cxx.

virtual TypeHandle PNMFileTypeTIFF::get_type void   )  const [inline, virtual]
 

Reimplemented from PNMFileType.

Definition at line 102 of file pnmFileTypeTIFF.h.

References PNMFileType::get_class_type().

bool PNMFileTypeTIFF::has_magic_number  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 266 of file pnmFileTypeTIFF.cxx.

void PNMFileTypeTIFF::init_type void   )  [inline, static]
 

Reimplemented from PNMFileType.

Definition at line 97 of file pnmFileTypeTIFF.h.

References PNMFileType::get_class_type(), PNMFileType::init_type(), and register_type().

Referenced by init_libpnmimagetypes().

void PNMFileTypeTIFF::install_error_handlers  )  [static, private]
 

Definition at line 893 of file pnmFileTypeTIFF.cxx.

References _installed_error_handlers, tiff_error(), and tiff_warning().

Referenced by make_reader(), and make_writer().

TypedWritable * PNMFileTypeTIFF::make_PNMFileTypeTIFF const FactoryParams params  )  [static, protected]
 

Definition at line 969 of file pnmFileTypeTIFF.cxx.

References get_class_type(), PNMFileTypeRegistry::get_ptr(), and PNMFileTypeRegistry::get_type_by_handle().

Referenced by register_with_read_factory().

PNMReader * PNMFileTypeTIFF::make_reader istream *  file,
bool  owns_file = true,
const string &  magic_number = string()
[virtual]
 

Reimplemented from PNMFileType.

Definition at line 294 of file pnmFileTypeTIFF.cxx.

References PNMFileType::init_pnm(), and install_error_handlers().

PNMWriter * PNMFileTypeTIFF::make_writer ostream *  file,
bool  owns_file = true
[virtual]
 

Reimplemented from PNMFileType.

Definition at line 308 of file pnmFileTypeTIFF.cxx.

References PNMFileType::init_pnm(), and install_error_handlers().

bool PNMFileTypeTIFF::matches_magic_number const string &  magic_number  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 278 of file pnmFileTypeTIFF.cxx.

void PNMFileTypeTIFF::register_with_read_factory  )  [static]
 

Reimplemented from PNMFileType.

Definition at line 951 of file pnmFileTypeTIFF.cxx.

References get_class_type(), BamReader::get_factory(), and make_PNMFileTypeTIFF().

Referenced by init_libpnmimagetypes().

void PNMFileTypeTIFF::tiff_error const char *  module,
const char *  format,
va_list  ap
[static, private]
 

Definition at line 929 of file pnmFileTypeTIFF.cxx.

References buffer, and format.

Referenced by install_error_handlers().

void PNMFileTypeTIFF::tiff_warning const char *  module,
const char *  format,
va_list  ap
[static, private]
 

Definition at line 908 of file pnmFileTypeTIFF.cxx.

References buffer, and format.

Referenced by install_error_handlers().


Member Data Documentation

bool PNMFileTypeTIFF::_installed_error_handlers = false [static, private]
 

Definition at line 201 of file pnmFileTypeTIFF.cxx.

Referenced by install_error_handlers().

TypeHandle PNMFileTypeTIFF::_type_handle [static, private]
 

Reimplemented from PNMFileType.

Definition at line 202 of file pnmFileTypeTIFF.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:15 2003 for Panda by doxygen1.3