collect Class Reference

#include <collect.h>


Public Member Functions

virtual ~collect ()
 collect ()
 collect (const collect &)
collectoperator= (const collect &)
void append (wchar_t c)
void append (const wchar_t *s, size_t n)
void push_back (const wstring &s)
wstring end ()

Private Attributes

size_t pos
size_t size
wchar_t * buf


Detailed Description

The collect class is used to represent an accumulated wide character string.

Definition at line 31 of file collect.h.


Constructor & Destructor Documentation

virtual collect::~collect (  )  [virtual]

The destructor.

collect::collect (  ) 

The default constructor.

collect::collect ( const collect  ) 

The copy constructor.


Member Function Documentation

collect& collect::operator= ( const collect  ) 

The assignment operator.

void collect::append ( wchar_t  c  ) 

The append method is used to accumulate a string one character at a time. No size limit.

Parameters:
c the character being collected

void collect::append ( const wchar_t *  s,
size_t  n 
)

The append method is used to accumulate a string several characters at a time. No size limit.

Parameters:
s the character string to be appended
n the number of characters to appended

void collect::push_back ( const wstring s  ) 

The push_back method may be used to append the given wide string to the end of the buffer.

Parameters:
s The string to append.

wstring collect::end (  ) 

The end method is used to fetch the string accumulated with the collect function. The buffer is cleared.

Returns:
wstring; pointer to the string in dynamic memory.


Field Documentation

size_t collect::pos [private]

Definition at line 93 of file collect.h.

size_t collect::size [private]

Definition at line 94 of file collect.h.

wchar_t* collect::buf [private]

Definition at line 95 of file collect.h.


The documentation for this class was generated from the following file:

Generated on Wed Mar 12 23:37:39 2008 for Aegis by  doxygen 1.5.5