Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_XMLWriter_Entry Class Reference

Inheritance diagram for CP_XMLWriter_Entry:

CP_NoCopy CP_XMLWriter_Comment CP_XMLWriter_Element CP_XMLWriter_ProcessingInstruction List of all members.

Writing

void Write (CP_XMLWriter *inXMLWriter=NULL)
virtual void WriteHeader (CP_XMLWriter *)
virtual void WriteTrailer (CP_XMLWriter *)
virtual void WriteData (CP_XMLWriter *)

Public Member Functions

Constructor / Destructor
virtual ~CP_XMLWriter_Entry ()
 Destructor.

Protected Member Functions

Constructor / Destructor
 CP_XMLWriter_Entry (CP_XMLWriter *inXMLWriter, CP_XMLWriter_Entry *inParentElement, const CP_String &inTag, const CP_String &inData)
 Contructor.

Protected Attributes

CP_XMLWriterfXMLWriter
CP_XMLWriter_EntryfParentElement
CP_String fTag
CP_String fData
CP_XMLElements_ArrayfElements
bool fIsWritten

Constructor & Destructor Documentation

CP_XMLWriter_Entry::~CP_XMLWriter_Entry  )  [virtual]
 

Destructor.

CPLAT_Begin_Namespace_CPLAT CP_XMLWriter_Entry::CP_XMLWriter_Entry CP_XMLWriter inXMLWriter,
CP_XMLWriter_Entry inParentElement,
const CP_String inTag,
const CP_String inData
[protected]
 

Constructor.

Parameters:
inXMLWriter - the CP_XMLWriter object that this element is a part of.
inParentElement - the parent element of this comment.
inTag - the data that the data is referred by.
inData - the data for this element


Member Function Documentation

CP_XMLWriter* CP_XMLWriter_Entry::GetXMLWriter  ) 
 

virtual void CP_XMLWriter_Entry::SetData const CP_String inData  )  [virtual]
 

Reimplemented in CP_XMLWriter_Element.

virtual const CP_String CP_XMLWriter_Entry::GetData  )  const [virtual]
 

void CP_XMLWriter_Entry::SetTag const CP_String inTag  ) 
 

void CP_XMLWriter_Entry::AddChildElement CP_XMLWriter_Entry inChildElement  ) 
 

Add a new child element to ourselves.

Parameters:
inChildElement - the element to add.

UInt32 CP_XMLWriter_Entry::GetElementsDepth  ) 
 

Return the depth (from the root item) of our element. This information is used to figure out how much to indent our element in listings.

UInt32 CP_XMLWriter_Entry::GetNumberChildElements  ) 
 

Return the number of child elements for ourselves.

CP_XMLWriter_Entry * CP_XMLWriter_Entry::GetNthChildElement UInt32  inIndex  ) 
 

Return the child element at inIndex.

Parameters:
inIndex - the index of the item to return.

bool CP_XMLWriter_Entry::IsWritten  ) 
 

void CP_XMLWriter_Entry::Write CP_XMLWriter inXMLWriter = NULL  ) 
 

Write the data for this element out.

virtual void CP_XMLWriter_Entry::WriteHeader CP_XMLWriter  )  [virtual]
 

Reimplemented in CP_XMLWriter_Comment, CP_XMLWriter_Element, and CP_XMLWriter_ProcessingInstruction.

virtual void CP_XMLWriter_Entry::WriteTrailer CP_XMLWriter  )  [virtual]
 

Reimplemented in CP_XMLWriter_Element, and CP_XMLWriter_ProcessingInstruction.

virtual void CP_XMLWriter_Entry::WriteData CP_XMLWriter  )  [virtual]
 

Reimplemented in CP_XMLWriter_Element, and CP_XMLWriter_ProcessingInstruction.


Member Data Documentation

CP_XMLWriter* CP_XMLWriter_Entry::fXMLWriter [protected]
 

CP_XMLWriter_Entry* CP_XMLWriter_Entry::fParentElement [protected]
 

The XMLWriter that we are going to write the data to.

CP_String CP_XMLWriter_Entry::fTag [protected]
 

The parent element that this entry goes with.

CP_String CP_XMLWriter_Entry::fData [protected]
 

The tag for this entry.

CP_XMLElements_Array* CP_XMLWriter_Entry::fElements [protected]
 

The actual data for the entry.

bool CP_XMLWriter_Entry::fIsWritten [protected]
 

A list of child elements for this entry.


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:22:25 2005 for CPLAT_MacOS by  doxygen 1.4.0