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

panda/src/pnmimage/pnmReader.I

Go to the documentation of this file.
00001 // Filename: pnmReader.I
00002 // Created by:  drose (16Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: PNMReader::Constructor
00021 //       Access: Protected
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE PNMReader::
00025 PNMReader(PNMFileType *type, istream *file, bool owns_file) :
00026   _type(type),
00027   _owns_file(owns_file),
00028   _file(file),
00029   _is_valid(true)
00030 {
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //     Function: PNMReader::get_type
00035 //       Access: Public
00036 //  Description: Returns a pointer to the PNMFileType object that
00037 //               created this PNMReader.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE PNMFileType *PNMReader::
00040 get_type() const {
00041   return _type;
00042 }
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //     Function: PNMReader::is_valid
00046 //       Access: Public
00047 //  Description: Returns true if the PNMReader can be used to read
00048 //               data, false if something is wrong.
00049 ////////////////////////////////////////////////////////////////////
00050 INLINE bool PNMReader::
00051 is_valid() const {
00052   return _is_valid;
00053 }

Generated on Fri May 2 00:43:10 2003 for Panda by doxygen1.3