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

oofIDfactory Class Reference

#include <oofxml.h>

Collaboration diagram for oofIDfactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

Generate nestable Dewey Decimal-style ID's to easily provide unique XML ID attributes.

Optionally can replace the separator. Traacks the indent level of the current ID so making it easy to indent nested XML being written. Typically call enterLevel() and leaveLevel() as you descend the tree being written, and incrementID() each time a node is written.


Public Member Functions

 oofIDfactory (char theSeparator= '-', int indentDepth=3)
void reset ()
void enterLevel ()
void leaveLevel ()
void incrementID ()
oofString getIDstring ()
oofString getQuotedIDstring ()
oofString getIndentString ()
int currentLevel () const


Constructor & Destructor Documentation

oofIDfactory::oofIDfactory char  theSeparator = '-',
int  indentDepth = 3
 


Member Function Documentation

int oofIDfactory::currentLevel  )  const [inline]
 

void oofIDfactory::enterLevel  )  [inline]
 

oofString oofIDfactory::getIDstring  ) 
 

oofString oofIDfactory::getIndentString  )  [inline]
 

oofString oofIDfactory::getQuotedIDstring  ) 
 

void oofIDfactory::incrementID  )  [inline]
 

void oofIDfactory::leaveLevel  ) 
 

void oofIDfactory::reset  ) 
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:39:29 2004 for OOFILE by doxygen 1.3.5