BIE::RecordInputStream_Binary Class Reference

Reads record input streams from a binary file. More...

#include <RecordStream_Binary.h>

Inheritance diagram for BIE::RecordInputStream_Binary:
Collaboration diagram for BIE::RecordInputStream_Binary:

List of all members.

Public Member Functions

 RecordInputStream_Binary (RecordType *type, string filename)
 Opens the file with the given name, and creates a record input stream using the type information provided.
 RecordInputStream_Binary (RecordType *type, istream *binarystream)
 Create an input stream using the type provided by the caller and the (already open) binary input stream.
 RecordInputStream_Binary (string filename)
 Open the file with the specified name, and extract the type information from a tag at the beginning of the file.
 RecordInputStream_Binary (istream *binarystream)
 Create an input stream using the (already open) binary input stream.
 ~RecordInputStream_Binary ()
 Destructor. Closes file if this class opened it.
bool nextRecord ()
 Gets the next record from the input stream.
bool eos ()
 Returns true if the end of the binary file/stream has been reached.
bool error ()
 Returns true if an error has occured in this, or an inherited stream.


Detailed Description

Reads record input streams from a binary file.

Constructor & Destructor Documentation

BIE::RecordInputStream_Binary::RecordInputStream_Binary ( RecordType type,
string  filename 
)

Opens the file with the given name, and creates a record input stream using the type information provided.

BIE::RecordInputStream_Binary::RecordInputStream_Binary ( RecordType type,
istream *  binarystream 
)

Create an input stream using the type provided by the caller and the (already open) binary input stream.

BIE::RecordInputStream_Binary::RecordInputStream_Binary ( string  filename  ) 

Open the file with the specified name, and extract the type information from a tag at the beginning of the file.

BIE::RecordInputStream_Binary::RecordInputStream_Binary ( istream *  binarystream  ) 

Create an input stream using the (already open) binary input stream.

and extract the type information from the current point in the stream.


Member Function Documentation

bool BIE::RecordInputStream_Binary::nextRecord (  )  [virtual]

Gets the next record from the input stream.

Returns true if a record was successfully obtained, and false otherwise.

Reimplemented from BIE::RecordInputStream.


The documentation for this class was generated from the following file:

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen