Debug XML file. More...

#include <rdebug.h>

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

Public Member Functions

 RDebugXML (const RURI &name)
 
RURI GetName (void) const
 
virtual ~RDebugXML (void)
 
- Public Member Functions inherited from RDebug
 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)
 
virtual void WriteText (const RString &text)
 
virtual void WriteEndTag (const RString &tag)
 
void WriteTabs (size_t nb)
 

Private Attributes

RURI Name
 
RTextFile File
 
char * tmpTab
 
size_t tmpSizeTab
 

Additional Inherited Members

- Protected Attributes inherited from RDebug
int Depth
 
RBoolVector Depths
 

Detailed Description

Debug XML file.

This class implement a debugger file in XML format.

Constructor & Destructor Documentation

RDebugXML ( const RURI name)

Construct the debug file.

Parameters
nameThe name of the file.
virtual ~RDebugXML ( void  )
virtual

Destruct the debug file.

Member Function Documentation

RURI GetName ( void  ) const

Get the name of the file.

virtual void WriteBeginTag ( const RString tag,
const RString attrs 
)
protectedvirtual
Parameters
tagName of the tag.
attrsAttributes.

Implements RDebug.

virtual void WriteText ( const RString text)
protectedvirtual

Write Text associate with current tag.

Parameters
textText to add.

Implements RDebug.

virtual void WriteEndTag ( const RString tag)
protectedvirtual

End to write a Tag.

Parameters
tagName of the tag.

Implements RDebug.

void WriteTabs ( size_t  nb)
protected

Go to the next line in the file and write a given number of tabs.

Parameters
nbNumber of tabs.

Member Data Documentation

RURI Name
private

The name of the file.

RTextFile File
private

The handle of the file.

char* tmpTab
private

Temporary Variables for Internal use.

size_t tmpSizeTab
private

Size of the array.