BIE::RecordOutputStream_Binary Class Reference

A record output stream that writes to a binary file. More...

#include <RecordStream_Binary.h>

Inheritance diagram for BIE::RecordOutputStream_Binary:
Collaboration diagram for BIE::RecordOutputStream_Binary:

List of all members.

Public Member Functions

 RecordOutputStream_Binary (RecordOutputStream *stream, string filename, bool writemetadata)
 Constructs an output stream which writes all records pushed to the specified stream into a file with the given name.
 RecordOutputStream_Binary (RecordOutputStream *stream, ostream *binarystream, bool writemetadata)
 Constructs a new record output stream which writes all records pushed to the specified record stream to specified output stream (possibly a file or network connection).
 ~RecordOutputStream_Binary ()
 Closes the output file if it was opened by this class.
virtual void pushRecord ()
 Writes out the current record to the file.


Detailed Description

A record output stream that writes to a binary file.

The files are written in the same format read by the RecordInputStream_Binary class.


Constructor & Destructor Documentation

BIE::RecordOutputStream_Binary::RecordOutputStream_Binary ( RecordOutputStream stream,
string  filename,
bool  writemetadata 
)

Constructs an output stream which writes all records pushed to the specified stream into a file with the given name.

If the final argument field is set to true, then a type-tag is written at the beginning of the file.

BIE::RecordOutputStream_Binary::RecordOutputStream_Binary ( RecordOutputStream stream,
ostream *  binarystream,
bool  writemetadata 
)

Constructs a new record output stream which writes all records pushed to the specified record stream to specified output stream (possibly a file or network connection).

If the final argument field is set to true, then a type-tag is written to the stream.


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