NBaseOutput Class Reference

NBaseOutput is the base class for output message handling. More...

Inheritance diagram for NBaseOutput:

NDebug NMessage NWarning

List of all members.

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.
NBaseOutputsetBase (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.


Detailed Description

NBaseOutput is the base class for output message handling.

Definition at line 34 of file nbaseoutput.h.


Member Enumeration Documentation

enum Base

Enumerates the numbering base for the output.

Enumerator:
HEXADECIMAL  Hexadecimal base
DECIMAL  Decimal base
OCTAL  Octal base

Definition at line 39 of file nbaseoutput.h.


Member Function Documentation

NBaseOutput & setBase ( Base  base  ) 

Sets the numbering base for the output.

Parameters:
base The numbering base acording to the enum Base
Returns:
A reference to the current object

Definition at line 34 of file nbaseoutput.cpp.

void print ( nint32  val  )  [protected]

Prints a signed integer.

Parameters:
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.

Parameters:
val Value

Definition at line 58 of file nbaseoutput.cpp.

References DECIMAL, HEXADECIMAL, and OCTAL.

void print ( nint64  val  )  [protected]

Prints a signed long integer.

Parameters:
val Value

Definition at line 77 of file nbaseoutput.cpp.

void print ( nuint64  val  )  [protected]

Prints an unsigned long integer.

Parameters:
val Value

Definition at line 82 of file nbaseoutput.cpp.

void print ( double  d  )  [static, protected]

Prints a double.

Parameters:
d Value

Reimplemented in NDebug, and NWarning.

Definition at line 87 of file nbaseoutput.cpp.

void print ( char  c  )  [static, protected]

Prints a char.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
str A pointer to a null terminated string
Note:
This avoid the compiler casting a regular, temporary, string to a const void pointer, which would cause the print(const void *) method being called

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.

Parameters:
str String

Reimplemented in NDebug, and NWarning.

Definition at line 113 of file nbaseoutput.cpp.

References NString::toChar().


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:36 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4