Output Stream Base Class


Topics:

Overview
Enumerations
Functions


Overview

Output stream base class used by derived classes to output filtered text to an ostream object.


Enumerations

// Enumeration used to define character filters when writing strings.
enum ostrFilterMode {
  ostrNO_FILTERING = 0, // Do not filter any characters
  ostrEAT_SPACES,       // Do not print any spaces
  ostrFILTER_EX_ASCII,  // Filter out the extended ASCII character set
  ostrHTLM_FILTER,      // Write text in an HTML format
  ostrLOWERCASE,        // Write all characters in lower case
  ostrUPPERCASE         // Write all characters in upper case
};


Functions

OutputStreamB::OutputStreamB()
OutputStreamB::FilterMode()
OutputStreamB::HTMLFilter()
OutputStreamB::Write()
OutputStreamB::WriteChar()
OutputStreamB::WriteString()
OutputStreamB::eat_htm_space()
OutputStreamB::operator<<()
OutputStreamB::precision()
OutputStreamB::put_htm_space()

OutputStreamB::OutputStreamB() - Default class constructor.

OutputStreamB::OutputStreamB(ostream &s) - Class constructor used to bind this object to a specified output stream.

void OutputStreamB::FilterMode(ostrFilterMode m) - Public member function use to set the text filter mode. The "m" variable must correspond to one of the enumerated constants defined in the ostrFilterMode enumeration.

void OutputStreamB::HTMLFilter(const unsigned char c) - Public member function used to filter all characters that have special meaning in HTML documents before writing the character to the currently bound output stream.

void OutputStreamB::Write(const char c) - Public member function used to write a single character to the output stream.

void OutputStreamB::Write(const unsigned char c) - Public member function used to write a single character to the output stream.

void OutputStreamB::Write(const unsigned long val) - Public member function used to write a long value to the output stream.

void OutputStreamB::Write(unsigned long val) - - Public member function used to write a long value to the output stream.

void OutputStreamB::Write(const int val) - - Public member function used to write a integer value to the output stream.

void OutputStreamB::Write(int val) - Public member function used to write a integer value to the output stream.

void OutputStreamB::Write(const unsigned int val) - Public member function used to write a integer value to the output stream.

void OutputStreamB::Write(unsigned int val) - Public member function used to write a integer value to the output stream.

void OutputStreamB::Write(double val) - Public member function used to write a floating point value to the output stream.

void OutputStreamB::Write(const double val) - Public member function used to write a floating point value to the output stream.

void OutputStreamB::Write(float val) - Public member function used to write a floating point value to the output stream.

void OutputStreamB::Write(const float val) - Public member function used to write a floating point value to the output stream.

void OutputStreamB::Write(char c) - Public member function used to write a single character to the output stream.

void OutputStreamB::Write(unsigned char c) - Public member function used to write a single character to the output stream.

void OutputStreamB::Write(const char *s) - Public member function used to write a null-terminated string to the output stream.

void OutputStreamB::Write(char *s) - Public member function used to write a null-terminated string to the output stream.

void OutputStreamB::Write(const unsigned char *s) - Public member function used to write a null-terminated string to the output stream.

void OutputStreamB::Write(unsigned char *s) - Public member function used to write a null-terminated string to the output stream.

void OutputStreamB::Write(const long val) - Public member function used to write a long value to the output stream.

void OutputStreamB::Write(long val) - Public member function used to write a long value to the output stream.

virtual void OutputStreamB::WriteChar(const unsigned char c) - Protected member function used to write a single character to the output stream.

virtual void OutputStreamB::WriteString(const char *s) - Protected member function used to write a null terminated string to the output stream.

void OutputStreamB::eat_htm_space() - Public member function used to translate all spaces encountered in an HTML filter as non-breaking.

ostream &OutputStreamB::operator<<(ostream & (*_f) - Overloaded left shift operator that allows C++ I/O manipulators to be used on OutputStreamB objects.

OutputStreamB &OutputStreamB::operator<<( char *s) - Overloaded left shift operator that allows a null-terminated string to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const long val) - Overloaded left shift operator that allows a long value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(unsigned long val) - Overloaded left shift operator that allows a long value to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const unsigned long val) - Overloaded left shift operator that allows a long value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(int val) - Overloaded left shift operator that allows an integer value to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const int val) - Overloaded left shift operator that allows an integer value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(unsigned int val) - Overloaded left shift operator that allows an integer value to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const unsigned int val) - Overloaded left shift operator that allows an integer value to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const float val) - Overloaded left shift operator that allows a floating point value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(float val) - Overloaded left shift operator that allows a floating point value to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const double val) - Overloaded left shift operator that allows a floating point value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(const char *s) - Overloaded left shift operator that allows a null-terminated string to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(double val) - Overloaded left shift operator that allows a floating point value to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(unsigned char *s) - Overloaded left shift operator that allows a null-terminated string to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(const unsigned char *s) - Overloaded left shift operator that allows a null-terminated string to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(char c) - Overloaded left shift operator that allows a single character to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const char c) - Overloaded left shift operator that allows a single character to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(unsigned char c) - Overloaded left shift operator that allows a single character to be inserted into the output stream.

const OutputStreamB &OutputStreamB::operator<<(const unsigned char c) Overloaded left shift operator that allows a single character to be inserted into the output stream.

OutputStreamB &OutputStreamB::operator<<(long val) - Overloaded left shift operator that allows a long value to be inserted into the output stream.

void OutputStreamB::precision(int p) - Public member function used to set the decimal precision for floating point values. By default a decimal precision of 2 will by used for all floating point values.

void OutputStreamB::put_htm_space() - Public member function used to translate all spaces encountered in an HTML filter as a breaking space.


End Of Document