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

DatagramInputFile Class Reference

#include <datagramInputFile.h>

Inheritance diagram for DatagramInputFile:

DatagramGenerator List of all members.

Public Member Functions

INLINE DatagramInputFile ()
bool open (Filename filename)
bool read_header (string &header, size_t num_bytes)
virtual bool get_datagram (Datagram &data)
virtual bool is_eof ()
virtual bool is_error ()
INLINE void close ()

Private Attributes

bool _read_first_datagram
bool _error
ifstream _in_file
istream * _in
bool _owns_in

Constructor & Destructor Documentation

INLINE DatagramInputFile::DatagramInputFile  ) 
 


Member Function Documentation

INLINE void DatagramInputFile::close  ) 
 

Referenced by BamFile::close().

bool DatagramInputFile::get_datagram Datagram data  )  [virtual]
 

Implements DatagramGenerator.

Definition at line 98 of file datagramInputFile.cxx.

References _error, _in, _read_first_datagram, buffer, data, DatagramIterator::get_uint32(), NULL, and PN_uint32.

bool DatagramInputFile::is_eof  )  [virtual]
 

Implements DatagramGenerator.

Definition at line 149 of file datagramInputFile.cxx.

References _in.

bool DatagramInputFile::is_error  )  [virtual]
 

Implements DatagramGenerator.

Definition at line 160 of file datagramInputFile.cxx.

References _error, and _in.

bool DatagramInputFile::open Filename  filename  ) 
 

Definition at line 41 of file datagramInputFile.cxx.

References _error, _in, _in_file, _owns_in, _read_first_datagram, VirtualFileSystem::get_global_ptr(), NULL, and PT.

Referenced by BamFile::open_read().

bool DatagramInputFile::read_header string &  header,
size_t  num_bytes
 

Definition at line 75 of file datagramInputFile.cxx.

References _in, _read_first_datagram, buffer, and NULL.

Referenced by BamFile::open_read().


Member Data Documentation

bool DatagramInputFile::_error [private]
 

Definition at line 48 of file datagramInputFile.h.

Referenced by get_datagram(), is_error(), and open().

istream* DatagramInputFile::_in [private]
 

Definition at line 50 of file datagramInputFile.h.

Referenced by get_datagram(), is_eof(), is_error(), open(), and read_header().

ifstream DatagramInputFile::_in_file [private]
 

Definition at line 49 of file datagramInputFile.h.

Referenced by open().

bool DatagramInputFile::_owns_in [private]
 

Definition at line 51 of file datagramInputFile.h.

Referenced by open().

bool DatagramInputFile::_read_first_datagram [private]
 

Definition at line 47 of file datagramInputFile.h.

Referenced by get_datagram(), open(), and read_header().


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