wavelength 1.0.0
Loading...
Searching...
No Matches
PrnStream Class Referenceabstract

Text output stream. More...

#include <prnstream.h>

Inheritance diagram for PrnStream:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ PrnStream() [1/2]

PrnStream::PrnStream ( )
inline

Construct a stream with a dump level of 0.

The constructor has no out-of-line copy.

◆ ~PrnStream() [1/2]

virtual PrnStream::~PrnStream ( )
inlinevirtual

Release the stream.

Ghidra address:
NTSC-U/C: 0x00339ea0
Ghidra address:
PAL: 0x003a7450

◆ PrnStream() [2/2]

PrnStream::PrnStream ( )
inline

◆ ~PrnStream() [2/2]

virtual PrnStream::~PrnStream ( )
inlinevirtual

Destroy the stream.

Ghidra address:
0x100017e0

Member Function Documentation

◆ Print() [1/2]

virtual void PrnStream::Print ( const char * pszText)
pure virtual

Write text to the stream's destination.

The member is pure in this class.

Parameters
pszTextThe text, written unchanged.

Implemented in Debug, Debug, GfxManager, String, and String.

◆ Printf() [1/2]

void PrnStream::Printf ( const char * pszFormat,
... )

Format text into the shared format buffer and write the result through Print().

Parameters
pszFormatThe printf format.
Ghidra address:
NTSC-U/C: 0x0029e1b0
Ghidra address:
PAL: 0x002a7e78

◆ operator<<() [1/14]

PrnStream & PrnStream::operator<< ( const char * pszText)

Write text.

Parameters
pszTextThe text, written unchanged.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e410
Ghidra address:
PAL: 0x002a80d8

◆ operator<<() [2/14]

PrnStream & PrnStream::operator<< ( char ch)

Write a character.

Parameters
chThe character.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e230
Ghidra address:
PAL: 0x002a7ef8

◆ operator<<() [3/14]

PrnStream & PrnStream::operator<< ( short nValue)

Write a short integer in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e268
Ghidra address:
PAL: 0x002a7f30

◆ operator<<() [4/14]

PrnStream & PrnStream::operator<< ( int nValue)

Write an integer in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e2a0
Ghidra address:
PAL: 0x002a7f68

◆ operator<<() [5/14]

PrnStream & PrnStream::operator<< ( unsigned char nValue)

Write a byte as an unsigned integer in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e2e0
Ghidra address:
PAL: 0x002a7fa8

◆ operator<<() [6/14]

PrnStream & PrnStream::operator<< ( unsigned short nValue)

Write an unsigned short integer in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e318
Ghidra address:
PAL: 0x002a7fe0

◆ operator<<() [7/14]

PrnStream & PrnStream::operator<< ( unsigned int nValue)

Write an unsigned integer in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e350
Ghidra address:
PAL: 0x002a8018

◆ operator<<() [8/14]

PrnStream & PrnStream::operator<< ( unsigned long long nValue)

Write an unsigned 64-bit number in decimal.

Parameters
nValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e388
Ghidra address:
PAL: 0x002a8050

◆ operator<<() [9/14]

PrnStream & PrnStream::operator<< ( float fValue)

Write a number with two decimals.

Parameters
fValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e3c0
Ghidra address:
PAL: 0x002a8088

◆ operator<<() [10/14]

PrnStream & PrnStream::operator<< ( bool bValue)

Write true or false.

Parameters
bValueThe value.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029e450
Ghidra address:
PAL: 0x002a8118

◆ Space() [1/2]

void PrnStream::Space ( int nCount)

Write a number of spaces, one Print() call each.

The name is inferred.

Parameters
nCountThe number of spaces.
Ghidra address:
NTSC-U/C: 0x0029e4a8
Ghidra address:
PAL: 0x002a8170

◆ GetDumpLevel()

int PrnStream::GetDumpLevel ( ) const
inline
Returns
Detail of an object dump. RndObject::DumpText() lists the referrers only above 0. The name is inferred.

◆ Print() [2/2]

virtual void PrnStream::Print ( const char * str)
pure virtual

Write text.

Parameters
strThe text.

Implemented in Debug, Debug, GfxManager, String, and String.

◆ Printf() [2/2]

void PrnStream::Printf ( const char * format,
... )

Format text with printf() conventions and write it.

The text is cut to 1023 characters.

Parameters
formatThe format.
Ghidra address:
0x10017710

◆ operator<<() [11/14]

PrnStream & PrnStream::operator<< ( char c)

Write a character.

Parameters
cThe character.
Returns
The stream.
Ghidra address:
0x10017740

◆ operator<<() [12/14]

PrnStream & PrnStream::operator<< ( int i)

Write an integer in decimal.

Parameters
iThe integer.
Returns
The stream.
Ghidra address:
0x10017760

◆ operator<<() [13/14]

PrnStream & PrnStream::operator<< ( float f)

Write a number with two decimal places.

Parameters
fThe number.
Returns
The stream.
Ghidra address:
0x10017780

◆ operator<<() [14/14]

PrnStream & PrnStream::operator<< ( const char * str)

Write text.

Parameters
strThe text.
Returns
The stream.
Ghidra address:
0x100177b0

◆ Space() [2/2]

void PrnStream::Space ( int count)

Write spaces.

Parameters
countThe number of spaces.
Ghidra address:
0x100177d0

The documentation for this class was generated from the following files: