Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XMLBuffer Class Reference

List of all members.

Public Methods

void append (const XMLCh toAppend)
void append (const XMLCh *const chars, const unsigned int count=0)
const XMLCh * getRawBuffer () const
XMLCh * getRawBuffer ()
void reset ()
void set (const XMLCh *const chars, const unsigned int count=0)
bool getInUse ()
unsigned int getLen () const
bool isEmpty ()
void setInUse (const bool newValue)
Constructor
 XMLBuffer (int capacity=1023)
Destructor

Friends

class XMLBufBid

Detailed Description

XMLBuffer is a lightweight, expandable Unicode text buffer. Since XML is inherently theoretically unbounded in terms of the sizes of things, we very often need to have expandable buffers. The primary concern here is that appends of characters and other buffers or strings be very fast, so it always maintains the current buffer size.

The buffer is not nul terminated until some asks to see the raw buffer contents. This also avoids overhead during append operations.


Member Function Documentation

void XMLBuffer::append const XMLCh *const    chars,
const unsigned int    count = 0
 

Revision 1.1 2002/05/11 20:01:01 bhavani CR#CR062582# adding xercesc 1.7 file

Revision 1.1.1.1 2002/02/01 22:21:50 peiyongz sane_include

Revision 1.5 2000/08/17 00:04:50 andyh Fix error in growing of XMLBuffer from within ensureCapacity() Fixes crash pointed out by Simon Fell.

Revision 1.4 2000/05/15 22:31:11 andyh Replace #include<memory.h> with <string.h> everywhere.

Revision 1.3 2000/02/06 07:47:47 rahulj Year 2K copyright swat.

Revision 1.2 1999/11/23 01:04:19 roddey Updates to some of the internal VC++ project files and some small fixes to make XMLBuffer correctly character size agnostic.

Revision 1.1.1.1 1999/11/09 01:08:29 twl Initial checkin

Revision 1.2 1999/11/08 20:44:35 rahul Swat for adding in Product name and CVS comment log variable.


The documentation for this class was generated from the following files:
Generated on Tue Nov 19 09:36:47 2002 by doxygen1.3-rc1