Aegis  4.25.D505
Public Member Functions | Private Attributes
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_tbuf

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.

The default constructor.

collect::collect ( const collect )

The copy constructor.


Member Function Documentation

void collect::append ( wchar_t  c)

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

Parameters:
cthe 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:
sthe character string to be appended
nthe number of characters to appended

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.
collect& collect::operator= ( const collect )

The assignment operator.

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:
sThe string to append.

Field Documentation

wchar_t* collect::buf [private]

Definition at line 95 of file collect.h.

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.


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