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

PNMFileTypeAlias Class Reference

#include <pnmFileTypeAlias.h>

Inheritance diagram for PNMFileTypeAlias:

PNMFileType TypedWritable TypedObject List of all members.

Public Member Functions

 PNMFileTypeAlias ()
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 PNMReader * make_reader (istream *file, bool owns_file=true, const string &magic_number=string())
virtual PNMWriter * make_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

TypedWritable * make_PNMFileTypeAlias (const FactoryParams &params)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

PNMFileTypeAlias::PNMFileTypeAlias (   ) 
 

Definition at line 43 of file pnmFileTypeAlias.cxx.


Member Function Documentation

virtual TypeHandle PNMFileTypeAlias::force_init_type (  void   )  [inline, virtual]
 

Reimplemented from PNMFileType.

Definition at line 84 of file pnmFileTypeAlias.h.

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

TypeHandle PNMFileTypeAlias::get_class_type (  void   )  [inline, static]
 

Reimplemented from PNMFileType.

Definition at line 73 of file pnmFileTypeAlias.h.

Referenced by make_PNMFileTypeAlias(), and register_with_read_factory().

string PNMFileTypeAlias::get_extension (  int  n  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 75 of file pnmFileTypeAlias.cxx.

References extensions_alias, n, and num_extensions_alias.

string PNMFileTypeAlias::get_name (   )  const [virtual]
 

Implements PNMFileType.

Definition at line 52 of file pnmFileTypeAlias.cxx.

int PNMFileTypeAlias::get_num_extensions (   )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 63 of file pnmFileTypeAlias.cxx.

References num_extensions_alias.

string PNMFileTypeAlias::get_suggested_extension (   )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 88 of file pnmFileTypeAlias.cxx.

virtual TypeHandle PNMFileTypeAlias::get_type (  void   )  const [inline, virtual]
 

Reimplemented from PNMFileType.

Definition at line 81 of file pnmFileTypeAlias.h.

References PNMFileType::get_class_type().

void PNMFileTypeAlias::init_type (  void   )  [inline, static]
 

Reimplemented from PNMFileType.

Definition at line 76 of file pnmFileTypeAlias.h.

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

Referenced by init_libpnmimagetypes().

TypedWritable * PNMFileTypeAlias::make_PNMFileTypeAlias (  const FactoryParams &  params  )  [static, protected]
 

Definition at line 418 of file pnmFileTypeAlias.cxx.

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

Referenced by register_with_read_factory().

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

Reimplemented from PNMFileType.

Definition at line 100 of file pnmFileTypeAlias.cxx.

References PNMFileType::init_pnm().

PNMWriter * PNMFileTypeAlias::make_writer (  ostream *  file,
bool  owns_file = true
)  [virtual]
 

Reimplemented from PNMFileType.

Definition at line 113 of file pnmFileTypeAlias.cxx.

References PNMFileType::init_pnm().

void PNMFileTypeAlias::register_with_read_factory (   )  [static]
 

Reimplemented from PNMFileType.

Definition at line 400 of file pnmFileTypeAlias.cxx.

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

Referenced by init_libpnmimagetypes().


Member Data Documentation

TypeHandle PNMFileTypeAlias::_type_handle [static, private]
 

Reimplemented from PNMFileType.

Definition at line 35 of file pnmFileTypeAlias.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