PWLib  1.10.10
Public Member Functions
PCharArray Class Reference

Array of characters. More...

#include <array.h>

Inheritance diagram for PCharArray:
PString PCaselessString PFilePathString PStringStream PVXMLTransferResult PXMLRPCServerMethod PColourConverterRegistration PDirectory PFilePath PHTML PSynonymColourRegistration PServiceHTML

List of all members.

Public Member Functions

 PDECLARE_BASEARRAY (PCharArray, char)
Construction
 PCharArray (PINDEX initialSize=0)
 PCharArray (char const *buffer, PINDEX length, BOOL dynamic=TRUE)
Overrides from class PObject
virtual void PrintOn (ostream &strm) const
 Print the array.
virtual void ReadFrom (istream &strm)
 Read the array.

Detailed Description

Array of characters.


Constructor & Destructor Documentation

PCharArray::PCharArray ( PINDEX  initialSize = 0)

Construct a new dynamic array of char. The array is initialised to all zero bytes.

Parameters:
initialSizeInitial number of elements in the array.
PCharArray::PCharArray ( char const *  buffer,
PINDEX  length,
BOOL  dynamic = TRUE 
)

Construct a new dynamic array of char.

Parameters:
bufferPointer to an array of chars.
lengthNumber of elements pointed to by #buffer#.
dynamicBuffer is copied and dynamically allocated.

Member Function Documentation

virtual void PCharArray::PrintOn ( ostream &  strm) const [virtual]

Print the array.

Parameters:
strmStream to output to.

Reimplemented in PString.

virtual void PCharArray::ReadFrom ( istream &  strm) [virtual]

Read the array.

Reimplemented in PString.


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