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

GStringPipe Class Reference

A version of GBytePipe for strings. Adds some special handling for strings. More...

#include <GContainers.h>

Inheritance diagram for GStringPipe:

GBytePipe GStream GDom List of all members.

Public Member Functions

 GStringPipe (int PreAlloc=-1)
 Constructs the object.
virtual int Pop (char *Str, int BufSize)
 Removes a utf-8 line of text from the container.
virtual int Push (char *Str, int Len=-1)
 Inserts a utf-8 string into the container.
virtual int Push (char16 *Str, int Len=-1)
 Inserts a wide char string into the container.
bool Printf (char *Str,...)
 Formats a utf-8 string and adds it to the contents.
bool Printf (char16 *Str,...)
 Formats a wide char string and adds it to the contents.
char * NewStr ()
 Creates a null terminated utf-8 string out of the classes contents.
char16NewStrW ()
 Creates a null terminated wide character string out of the classes contents.

Detailed Description

A version of GBytePipe for strings. Adds some special handling for strings.


Constructor & Destructor Documentation

GStringPipe::GStringPipe int  PreAlloc = -1  )  [inline]
 

Constructs the object.

Parameters:
PreAlloc  Number of bytes to allocate per block.


Member Function Documentation

int GStringPipe::Pop char *  Str,
int  BufSize
[virtual]
 

Removes a utf-8 line of text from the container.

Parameters:
Str  The output buffer
BufSize  The size of the buffer

int GStringPipe::Push char16 Str,
int  Len = -1
[virtual]
 

Inserts a wide char string into the container.

Parameters:
Str  The string
Len  The length in characters

int GStringPipe::Push char *  Str,
int  Len = -1
[virtual]
 

Inserts a utf-8 string into the container.

Parameters:
Str  The string
Len  The length in bytes


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:03 2005 for Lgi by  doxygen 1.4.1