NDebug Class Reference

NDebug class is used for displaying debug messages. More...

Inheritance diagram for NDebug:

NBaseOutput

List of all members.

Public Member Functions

 ~NDebug (void)
 Destroys a NDebug object.
NDebugoperator<< (nint32 val)
 Prints a signed integer.
NDebugoperator<< (nuint32 val)
 Prints an unsigned integer.
NDebugoperator<< (nint64 val)
 Prints a signed long integer.
NDebugoperator<< (nuint64 val)
 Prints an unsigned long integer.
NDebugoperator<< (double d)
 Prints a double.
NDebugoperator<< (char c)
 Prints a char.
NDebugoperator<< (const NString &str)
 Prints a string.
NDebugoperator<< (const void *ptr)
 Prints the address of a pointer.
NDebugoperator<< (const char *str)
 Prints a char * string.

Static Public Member Functions

static NDebug print (void)
 Starts the displaying of a warning message.

Protected Member Functions

 NDebug (void)
 Constructs a NBase object.
void print (int val)
 Prints a signed integer.
void print (double d)
 Prints a double.
void print (char c)
 Prints a char.
void print (const NString &str)
 Prints a string.
void println (const NString &str)
 Prints a string appending a newline at the end of it.


Detailed Description

NDebug class is used for displaying debug messages.

Definition at line 36 of file ndebug.h.


Member Function Documentation

NDebug print ( void   )  [static]

Starts the displaying of a warning message.

Returns:
An object to be used to display warning messages
Examples:
nsqlapp.cpp.

Definition at line 36 of file ndebug.cpp.

References NBaseOutput::print().

Referenced by NGetOpt::add(), NMySql::connectToHost(), NXmlDocument::constFindNode(), NXmlDocument::constNext(), NXmlDocument::constPrevious(), NMySql::execSql(), NXmlDocument::findNode(), NMySql::getNext(), NXmlDocument::next(), NXmlParser::NXmlParser(), NXmlSchemaParser::NXmlSchemaParser(), NXmlParser::parse(), NXmlDocument::previous(), NTcpSocket::readLine(), NSql::setHost(), and NSql::setPort().

NDebug & operator<< ( nint32  val  ) 

Prints a signed integer.

Parameters:
val Value
Returns:
A reference to this

Definition at line 48 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( nuint32  val  ) 

Prints an unsigned integer.

Parameters:
val Value
Returns:
A reference to this

Definition at line 56 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( nint64  val  ) 

Prints a signed long integer.

Parameters:
val Value
Returns:
A reference to this

Definition at line 65 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( nuint64  val  ) 

Prints an unsigned long integer.

Parameters:
val Value
Returns:
A reference to this

Definition at line 73 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( double  d  ) 

Prints a double.

Parameters:
d Value
Returns:
A reference to this

Definition at line 82 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( char  c  ) 

Prints a char.

Parameters:
c Char
Returns:
A reference to this

Definition at line 91 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( const NString str  ) 

Prints a string.

Parameters:
str String
Returns:
A reference to this

Definition at line 99 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( const void *  ptr  ) 

Prints the address of a pointer.

Parameters:
ptr The address of the pointer
Returns:
A reference to this

Definition at line 108 of file ndebug.cpp.

References NBaseOutput::print().

NDebug & operator<< ( const char *  str  ) 

Prints a char * string.

Parameters:
str A pointer to a null terminated string
Returns:
A reference to this
Note:
This avoid the compiler casting a regular, temporary, string to a const void pointer, which would cause the operator for a const void * being called

Definition at line 117 of file ndebug.cpp.

References NBaseOutput::print().

void print ( int  val  )  [protected]

Prints a signed integer.

Parameters:
val Value

Reimplemented from NBaseOutput.

void print ( double  d  )  [protected]

Prints a double.

Parameters:
d Value

Reimplemented from NBaseOutput.

void print ( char  c  )  [protected]

Prints a char.

Parameters:
c Char

Reimplemented from NBaseOutput.

void print ( const NString str  )  [protected]

Prints a string.

Parameters:
str String

Reimplemented from NBaseOutput.

void println ( const NString str  )  [protected]

Prints a string appending a newline at the end of it.

Parameters:
str String

Reimplemented from NBaseOutput.


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