Generic Debug Output. More...

#include <rdebug.h>

Inheritance diagram for RDebug:
[legend]
Collaboration diagram for RDebug:
[legend]

Public Member Functions

 RDebug (void)
 
void BeginTag (const RString &tag, const RString &attrs=RString::Null)
 
void PrintComment (const RString &text)
 
void EndTag (const RString &text)
 
const RStringGetCurrentTag (void) const
 
void PrintInfo (const RString &text)
 
void BeginFunc (const RString &name, const RString &object)
 
void EndFunc (const RString &name, const RString &object)
 
void BeginApp (const RString &app)
 
void EndApp (const RString &app)
 
virtual ~RDebug (void)
 

Protected Member Functions

virtual void WriteBeginTag (const RString &tag, const RString &attrs)=0
 
virtual void WriteText (const RString &text)=0
 
virtual void WriteEndTag (const RString &tag)=0
 

Protected Attributes

int Depth
 
RBoolVector Depths
 

Private Attributes

RString CurTag
 

Detailed Description

Generic Debug Output.

This file represent a generic debug output for the GA.

Constructor & Destructor Documentation

RDebug ( void  )

Construct a debugger output.

virtual ~RDebug ( void  )
virtual

Destruct the debugger output.

Member Function Documentation

void BeginTag ( const RString tag,
const RString attrs = RString::Null 
)

Begin a Tag with attributes.

Parameters
tagName of the Tag.
attrsAttributes.
void PrintComment ( const RString text)

Print some Text in the current tag.

Parameters
textText to add.
void EndTag ( const RString text)

End a Tag.

Parameters
textName of the Tag.
const RString& GetCurrentTag ( void  ) const

Get the name of the current tag.

void PrintInfo ( const RString text)

Print an Info Tag.

Parameters
textText to add.
void BeginFunc ( const RString name,
const RString object 
)

Begin a member function tag.

Parameters
nameName of the member function.
objectName of the object.
void EndFunc ( const RString name,
const RString object 
)

End a member function tag.

Parameters
nameName of the member function.
objectName of the object.
void BeginApp ( const RString app)

Begin an application tag.

Parameters
appName of the application.
void EndApp ( const RString app)

End an application tag.

Parameters
appName of the application.
virtual void WriteBeginTag ( const RString tag,
const RString attrs 
)
protectedpure virtual

Begin to write a Tag. This function must be implement.

Parameters
tagName of the tag.
attrsAttributes.

Implemented in RDebugXML, and QRDebug.

virtual void WriteText ( const RString text)
protectedpure virtual

Write Text associate with current tag. This function must be implement.

Parameters
textText to add.

Implemented in RDebugXML, and QRDebug.

virtual void WriteEndTag ( const RString tag)
protectedpure virtual

End to write a Tag. This function must be implement.

Parameters
tagName of the tag.

Implemented in RDebugXML, and QRDebug.

Member Data Documentation

RString CurTag
private

String containing the current tag.

int Depth
protected

Depth (if -1 -> Nothing).

RBoolVector Depths
protected

If Depths[i]=true -> i+1 not null.