|
wavelength 1.0.0
|
Text output stream. More...
#include <prnstream.h>

Public Member Functions | |
| PrnStream () | |
| Construct a stream with a dump level of 0. | |
| virtual | ~PrnStream () |
| Release the stream. | |
| virtual void | Print (const char *pszText)=0 |
| Write text to the stream's destination. | |
| void | Printf (const char *pszFormat,...) |
| Format text into the shared format buffer and write the result through Print(). | |
| PrnStream & | operator<< (const char *pszText) |
| Write text. | |
| PrnStream & | operator<< (char ch) |
| Write a character. | |
| PrnStream & | operator<< (short nValue) |
| Write a short integer in decimal. | |
| PrnStream & | operator<< (int nValue) |
| Write an integer in decimal. | |
| PrnStream & | operator<< (unsigned char nValue) |
| Write a byte as an unsigned integer in decimal. | |
| PrnStream & | operator<< (unsigned short nValue) |
| Write an unsigned short integer in decimal. | |
| PrnStream & | operator<< (unsigned int nValue) |
| Write an unsigned integer in decimal. | |
| PrnStream & | operator<< (unsigned long long nValue) |
| Write an unsigned 64-bit number in decimal. | |
| PrnStream & | operator<< (float fValue) |
| Write a number with two decimals. | |
| PrnStream & | operator<< (bool bValue) |
| Write true or false. | |
| void | Space (int nCount) |
| Write a number of spaces, one Print() call each. | |
| int | GetDumpLevel () const |
| PrnStream () | |
| virtual | ~PrnStream () |
| Destroy the stream. | |
| virtual void | Print (const char *str)=0 |
| Write text. | |
| void | Printf (const char *format,...) |
| Format text with printf() conventions and write it. | |
| PrnStream & | operator<< (char c) |
| Write a character. | |
| PrnStream & | operator<< (int i) |
| Write an integer in decimal. | |
| PrnStream & | operator<< (float f) |
| Write a number with two decimal places. | |
| PrnStream & | operator<< (const char *str) |
| Write text. | |
| void | Space (int count) |
| Write spaces. | |
Text output stream.
Base of the streams that print text.
The RTTI includes the class name. The vtable runs the type function, the destructor, and Print().
Every insertion operator returns the stream. An insertion chain therefore writes its pieces in order through Print().
The object is 8 bytes. A derived class provides Print(). The constructor clears the word at +0x04, and no routine of the control reads it.
|
inline |
Construct a stream with a dump level of 0.
The constructor has no out-of-line copy.
|
inlinevirtual |
Release the stream.
|
inline |
|
inlinevirtual |
Destroy the stream.
|
pure virtual |
Write text to the stream's destination.
The member is pure in this class.
| pszText | The text, written unchanged. |
Implemented in Debug, Debug, GfxManager, String, and String.
| void PrnStream::Printf | ( | const char * | pszFormat, |
| ... ) |
Format text into the shared format buffer and write the result through Print().
| pszFormat | The printf format. |
| PrnStream & PrnStream::operator<< | ( | const char * | pszText | ) |
Write text.
| pszText | The text, written unchanged. |
| PrnStream & PrnStream::operator<< | ( | char | ch | ) |
Write a character.
| ch | The character. |
| PrnStream & PrnStream::operator<< | ( | short | nValue | ) |
Write a short integer in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | int | nValue | ) |
Write an integer in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | unsigned char | nValue | ) |
Write a byte as an unsigned integer in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | unsigned short | nValue | ) |
Write an unsigned short integer in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | unsigned int | nValue | ) |
Write an unsigned integer in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | unsigned long long | nValue | ) |
Write an unsigned 64-bit number in decimal.
| nValue | The value. |
| PrnStream & PrnStream::operator<< | ( | float | fValue | ) |
Write a number with two decimals.
| fValue | The value. |
| PrnStream & PrnStream::operator<< | ( | bool | bValue | ) |
Write true or false.
| bValue | The value. |
| void PrnStream::Space | ( | int | nCount | ) |
Write a number of spaces, one Print() call each.
The name is inferred.
| nCount | The number of spaces. |
|
inline |
|
pure virtual |
| void PrnStream::Printf | ( | const char * | format, |
| ... ) |
Format text with printf() conventions and write it.
The text is cut to 1023 characters.
| format | The format. |
| PrnStream & PrnStream::operator<< | ( | char | c | ) |
Write a character.
| c | The character. |
| PrnStream & PrnStream::operator<< | ( | int | i | ) |
Write an integer in decimal.
| i | The integer. |
| PrnStream & PrnStream::operator<< | ( | float | f | ) |
Write a number with two decimal places.
| f | The number. |
| PrnStream & PrnStream::operator<< | ( | const char * | str | ) |
Write text.
| str | The text. |
| void PrnStream::Space | ( | int | count | ) |
Write spaces.
| count | The number of spaces. |