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

OutTextRaw Class Reference

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

#include <OutStreams.h>

Inheritance diagram for OutTextRaw:

Inheritance graph
[legend]
Collaboration diagram for OutTextRaw:

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 raw text to be used in streams.

The physical writing is then done by PhysicalOutStream derivates. Different from OutText, OutTextRaw does not escape spaces and other special characters and no spaces are inserted before numbers. (The result of the OutTextRaw StreamWriter is the same as the result of "std::cout")

Definition at line 471 of file OutStreams.h.


Member Function Documentation

virtual void OutTextRaw::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 482 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Referenced by writeData().

Here is the call graph for this function:

virtual void OutTextRaw::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 490 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 498 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 506 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 514 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 522 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 530 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 538 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 546 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 554 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

void OutTextRaw::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 41 of file OutStreams.cpp.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

virtual void OutTextRaw::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 568 of file OutStreams.h.

References PhysicalOutStream::writeToStream().

Here is the call graph for this function:

void OutTextRaw::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 46 of file OutStreams.cpp.

References writeChar().

Here is the call graph for this function:


Member Data Documentation

char OutTextRaw::buf[50] [private]
 

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

Definition at line 475 of file OutStreams.h.


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