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

PNMFileTypeBMP Class Reference

#include <pnmFileTypeBMP.h>

Inheritance diagram for PNMFileTypeBMP:

PNMFileType TypedWritable TypedObject List of all members.

Public Member Functions

 PNMFileTypeBMP ()
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_PNMFileTypeBMP (const FactoryParams &params)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

PNMFileTypeBMP::PNMFileTypeBMP  ) 
 

Definition at line 38 of file pnmFileTypeBMP.cxx.


Member Function Documentation

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

Reimplemented from PNMFileType.

Definition at line 97 of file pnmFileTypeBMP.h.

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

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

Reimplemented from PNMFileType.

Definition at line 86 of file pnmFileTypeBMP.h.

Referenced by make_PNMFileTypeBMP(), and register_with_read_factory().

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

Reimplemented from PNMFileType.

Definition at line 70 of file pnmFileTypeBMP.cxx.

References extensions_bmp, n, and num_extensions_bmp.

string PNMFileTypeBMP::get_name  )  const [virtual]
 

Implements PNMFileType.

Definition at line 47 of file pnmFileTypeBMP.cxx.

int PNMFileTypeBMP::get_num_extensions  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 58 of file pnmFileTypeBMP.cxx.

References num_extensions_bmp.

string PNMFileTypeBMP::get_suggested_extension  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 83 of file pnmFileTypeBMP.cxx.

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

Reimplemented from PNMFileType.

Definition at line 94 of file pnmFileTypeBMP.h.

References PNMFileType::get_class_type().

bool PNMFileTypeBMP::has_magic_number  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 94 of file pnmFileTypeBMP.cxx.

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

Reimplemented from PNMFileType.

Definition at line 89 of file pnmFileTypeBMP.h.

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

Referenced by init_libpnmimagetypes().

TypedWritable * PNMFileTypeBMP::make_PNMFileTypeBMP const FactoryParams params  )  [static, protected]
 

Definition at line 163 of file pnmFileTypeBMP.cxx.

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

Referenced by register_with_read_factory().

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

Reimplemented from PNMFileType.

Definition at line 119 of file pnmFileTypeBMP.cxx.

References PNMFileType::init_pnm().

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

Reimplemented from PNMFileType.

Definition at line 132 of file pnmFileTypeBMP.cxx.

References PNMFileType::init_pnm().

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

Reimplemented from PNMFileType.

Definition at line 106 of file pnmFileTypeBMP.cxx.

void PNMFileTypeBMP::register_with_read_factory  )  [static]
 

Reimplemented from PNMFileType.

Definition at line 145 of file pnmFileTypeBMP.cxx.

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

Referenced by init_libpnmimagetypes().


Member Data Documentation

TypeHandle PNMFileTypeBMP::_type_handle [static, private]
 

Reimplemented from PNMFileType.

Definition at line 30 of file pnmFileTypeBMP.cxx.


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