Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

StreamWriter Class Reference

Generic class for formating data to be used in streams. More...

#include <OutStreams.h>

Inheritance diagram for StreamWriter:

Inheritance graph
[legend]
List of all members.

Protected Member Functions

virtual void writeChar (char d, PhysicalOutStream &stream)=0
 Writes a character to a stream.

virtual void writeUChar (unsigned char d, PhysicalOutStream &stream)=0
 Writes a unsigned character to a stream.

virtual void writeShort (short d, PhysicalOutStream &stream)=0
 Writes a short to a stream.

virtual void writeUShort (unsigned short d, PhysicalOutStream &stream)=0
 Writes a unsigned short to a stream.

virtual void writeInt (int d, PhysicalOutStream &stream)=0
 Writes a int to a stream.

virtual void writeUInt (unsigned int d, PhysicalOutStream &stream)=0
 Writes a unsigned int to a stream.

virtual void writeLong (long d, PhysicalOutStream &stream)=0
 Writes a long to a stream.

virtual void writeULong (unsigned long d, PhysicalOutStream &stream)=0
 Writes a unsigned long to a stream.

virtual void writeFloat (float d, PhysicalOutStream &stream)=0
 Writes a float to a stream.

virtual void writeDouble (double d, PhysicalOutStream &stream)=0
 Writes a double to a stream.

virtual void writeString (const char *d, PhysicalOutStream &stream)=0
 Writes a string to a stream.

virtual void writeEndL (PhysicalOutStream &stream)=0
 Writes a 'end of line' to a stream.

virtual void writeData (const void *p, int size, PhysicalOutStream &stream)=0
 The function writes a number of bytes into the stream.


Detailed Description

Generic class for formating data to be used in streams.

The physical writing is then done by OutStream derivates.

Definition at line 41 of file OutStreams.h.


Member Function Documentation

virtual void StreamWriter::writeChar (  char  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a character to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeUChar (  unsigned char  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a unsigned character to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeShort (  short  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a short to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeUShort (  unsigned short  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a unsigned short to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeInt (  int  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a int to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeUInt (  unsigned int  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a unsigned int to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeLong (  long  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a long to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeULong (  unsigned long  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a unsigned long to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeFloat (  float  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a float to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeDouble (  double  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a double to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeString (  const char *  d,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

Writes a string to a stream.

Parameters:
d the data to write.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeEndL (  PhysicalOutStream &  stream  )  [protected, pure virtual]
 

Writes a 'end of line' to a stream.

Parameters:
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.

virtual void StreamWriter::writeData (  const void *  p,
int  size,
PhysicalOutStream &  stream
)  [protected, pure virtual]
 

The function writes a number of bytes into the stream.

Parameters:
p The address the data is located at.
size The number of bytes to be written.
stream the stream to write on.

Implemented in OutBinary, OutText, and OutTextRaw.


The documentation for this class was generated from the following file:
Generated on Thu Sep 23 20:11:56 2004 for GT2004 by doxygen 1.3.6