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

PNMFileTypeSGI Class Reference

#include <pnmFileTypeSGI.h>

Inheritance diagram for PNMFileTypeSGI:

PNMFileType TypedWritable TypedObject List of all members.

Public Member Functions

 PNMFileTypeSGI ()
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_PNMFileTypeSGI (const FactoryParams &params)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

PNMFileTypeSGI::PNMFileTypeSGI  ) 
 

Definition at line 39 of file pnmFileTypeSGI.cxx.


Member Function Documentation

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

Reimplemented from PNMFileType.

Definition at line 132 of file pnmFileTypeSGI.h.

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

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

Reimplemented from PNMFileType.

Definition at line 121 of file pnmFileTypeSGI.h.

Referenced by make_PNMFileTypeSGI(), and register_with_read_factory().

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

Reimplemented from PNMFileType.

Definition at line 71 of file pnmFileTypeSGI.cxx.

References extensions_sgi, n, and num_extensions_sgi.

string PNMFileTypeSGI::get_name  )  const [virtual]
 

Implements PNMFileType.

Definition at line 48 of file pnmFileTypeSGI.cxx.

int PNMFileTypeSGI::get_num_extensions  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 59 of file pnmFileTypeSGI.cxx.

References num_extensions_sgi.

string PNMFileTypeSGI::get_suggested_extension  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 84 of file pnmFileTypeSGI.cxx.

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

Reimplemented from PNMFileType.

Definition at line 129 of file pnmFileTypeSGI.h.

References PNMFileType::get_class_type().

bool PNMFileTypeSGI::has_magic_number  )  const [virtual]
 

Reimplemented from PNMFileType.

Definition at line 95 of file pnmFileTypeSGI.cxx.

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

Reimplemented from PNMFileType.

Definition at line 124 of file pnmFileTypeSGI.h.

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

Referenced by init_libpnmimagetypes().

TypedWritable * PNMFileTypeSGI::make_PNMFileTypeSGI const FactoryParams params  )  [static, protected]
 

Definition at line 167 of file pnmFileTypeSGI.cxx.

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

Referenced by register_with_read_factory().

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

Reimplemented from PNMFileType.

Definition at line 123 of file pnmFileTypeSGI.cxx.

References PNMFileType::init_pnm().

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

Reimplemented from PNMFileType.

Definition at line 136 of file pnmFileTypeSGI.cxx.

References PNMFileType::init_pnm().

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

Reimplemented from PNMFileType.

Definition at line 107 of file pnmFileTypeSGI.cxx.

References SGI_MAGIC.

void PNMFileTypeSGI::register_with_read_factory  )  [static]
 

Reimplemented from PNMFileType.

Definition at line 149 of file pnmFileTypeSGI.cxx.

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

Referenced by init_libpnmimagetypes().


Member Data Documentation

TypeHandle PNMFileTypeSGI::_type_handle [static, private]
 

Reimplemented from PNMFileType.

Definition at line 31 of file pnmFileTypeSGI.cxx.


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