Public Types | |
enum | Base { HEXADECIMAL, DECIMAL, OCTAL } |
Enumerates the numbering base for the output. More... | |
Public Member Functions | |
NBaseOutput (void) | |
Constructs a NBaseOutput object. | |
virtual | ~NBaseOutput (void) |
Destructor. | |
NBaseOutput & | setBase (Base base) |
Sets the numbering base for the output. | |
Protected Member Functions | |
void | print (nint32 val) |
Prints a signed integer. | |
void | print (nuint32 val) |
Prints an unsigned integer. | |
void | print (nint64 val) |
Prints a signed long integer. | |
void | print (nuint64 val) |
Prints an unsigned long integer. | |
Static Protected Member Functions | |
static void | print (double d) |
Prints a double. | |
static void | print (char c) |
Prints a char. | |
static void | print (const NString &str) |
Prints a string. | |
static void | print (const void *ptr) |
Prints the address of a pointer. | |
static void | print (const char *str) |
Prints a char * string. | |
static void | println (const NString &str) |
Prints a string appending a newline at the end of it. |
Definition at line 34 of file nbaseoutput.h.
enum Base |
NBaseOutput & setBase | ( | Base | base | ) |
Sets the numbering base for the output.
base | The numbering base acording to the enum Base |
Definition at line 34 of file nbaseoutput.cpp.
void print | ( | nint32 | val | ) | [protected] |
Prints a signed integer.
val | Value |
Reimplemented in NDebug, and NWarning.
Definition at line 40 of file nbaseoutput.cpp.
References DECIMAL, HEXADECIMAL, and OCTAL.
Referenced by NWarning::operator<<(), NMessage::operator<<(), NDebug::operator<<(), NWarning::print(), NDebug::print(), and NWarning::~NWarning().
void print | ( | nuint32 | val | ) | [protected] |
Prints an unsigned integer.
val | Value |
Definition at line 58 of file nbaseoutput.cpp.
References DECIMAL, HEXADECIMAL, and OCTAL.
void print | ( | nint64 | val | ) | [protected] |
void print | ( | nuint64 | val | ) | [protected] |
Prints an unsigned long integer.
val | Value |
Definition at line 82 of file nbaseoutput.cpp.
void print | ( | double | d | ) | [static, protected] |
Prints a double.
d | Value |
Reimplemented in NDebug, and NWarning.
Definition at line 87 of file nbaseoutput.cpp.
void print | ( | char | c | ) | [static, protected] |
Prints a char.
c | Char |
Reimplemented in NDebug, and NWarning.
Definition at line 92 of file nbaseoutput.cpp.
void print | ( | const NString & | str | ) | [static, protected] |
Prints a string.
str | String |
Reimplemented in NDebug, and NWarning.
Definition at line 97 of file nbaseoutput.cpp.
References NString::toChar().
void print | ( | const void * | ptr | ) | [static, protected] |
Prints the address of a pointer.
ptr | The address of the pointer |
Definition at line 102 of file nbaseoutput.cpp.
void print | ( | const char * | str | ) | [static, protected] |
Prints a char * string.
str | A pointer to a null terminated string |
Definition at line 107 of file nbaseoutput.cpp.
void println | ( | const NString & | str | ) | [static, protected] |
Prints a string appending a newline at the end of it.
str | String |
Reimplemented in NDebug, and NWarning.
Definition at line 113 of file nbaseoutput.cpp.
References NString::toChar().