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

OutText Class Reference

Formats data as text to be used in streams. More...

#include <OutStreams.h>

Inheritance diagram for OutText:

Inheritance graph
[legend]
Collaboration diagram for OutText:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

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

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

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

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

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

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

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

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

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

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

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

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

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


Private Attributes

char buf [50]
 A buffer for formatting the numeric data to a text format.


Detailed Description

Formats data as text to be used in streams.

The physical writing is then done by PhysicalOutStream derivates.

Definition at line 353 of file OutStreams.h.


Member Function Documentation

virtual void OutText::writeChar (  char  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a character to a stream.

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

Implements StreamWriter.

Definition at line 364 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Referenced by writeData().

Here is the call graph for this function:

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

Writes a unsigned character to a stream.

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

Implements StreamWriter.

Definition at line 372 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeShort (  short  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a short to a stream.

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

Implements StreamWriter.

Definition at line 380 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

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

Writes a unsigned short to a stream.

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

Implements StreamWriter.

Definition at line 388 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeInt (  int  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a int to a stream.

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

Implements StreamWriter.

Definition at line 396 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

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

Writes a unsigned int to a stream.

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

Implements StreamWriter.

Definition at line 404 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeLong (  long  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a long to a stream.

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

Implements StreamWriter.

Definition at line 412 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

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

Writes a unsigned long to a stream.

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

Implements StreamWriter.

Definition at line 420 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeFloat (  float  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a float to a stream.

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

Implements StreamWriter.

Definition at line 428 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeDouble (  double  d,
PhysicalOutStream &  stream
)  [inline, protected, virtual]
 

Writes a double to a stream.

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

Implements StreamWriter.

Definition at line 436 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

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

Writes a string to a stream.

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

Implements StreamWriter.

Definition at line 12 of file OutStreams.cpp.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutText::writeEndL (  PhysicalOutStream &  stream  )  [inline, protected, virtual]
 

Writes a 'end of line' to a stream.

Parameters:
stream the stream to write on.

Implements StreamWriter.

Definition at line 450 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

void OutText::writeData (  const void *  p,
int  size,
PhysicalOutStream &  stream
)  [protected, 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.

Implements StreamWriter.

Definition at line 35 of file OutStreams.cpp.

References writeChar().

Here is the call graph for this function:


Member Data Documentation

char OutText::buf[50] [private]
 

A buffer for formatting the numeric data to a text format.

Definition at line 357 of file OutStreams.h.


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