Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PG_DataContainer Class Reference

A container for binary data. More...

#include <pgdatacontainer.h>

Inheritance diagram for PG_DataContainer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PG_DataContainer (Uint32 size)
 Constructor.
virtual ~PG_DataContainer ()
 Destructor.
Uint32 size ()
 return the number of bytes allocated by the container
char * data ()
 access to the internal data

Detailed Description

A container for binary data.

Author:
Alexander Pipelka
This class is a container to hold binary data (imagedata, fonts,...).

Definition at line 45 of file pgdatacontainer.h.


Constructor & Destructor Documentation

PG_DataContainer::PG_DataContainer Uint32  size  ) 
 

Constructor.

Parameters:
size number of bytes to allocate
Creates a container which can hold "size" number of bytes.

Definition at line 31 of file pgdatacontainer.cpp.

PG_DataContainer::~PG_DataContainer  )  [virtual]
 

Destructor.

Deletes the object and frees to allocated memory.

Definition at line 41 of file pgdatacontainer.cpp.


Member Function Documentation

char * PG_DataContainer::data  ) 
 

access to the internal data

Returns:
pointer to allocated memory

Definition at line 52 of file pgdatacontainer.cpp.

Referenced by PG_RichEdit::LoadText(), and PG_FileArchive::ReadFile().

Uint32 PG_DataContainer::size  ) 
 

return the number of bytes allocated by the container

Returns:
number of bytes allocated

Definition at line 48 of file pgdatacontainer.cpp.

Referenced by PG_RichEdit::LoadText().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:51 2008 for Advanced Strategic Command by  doxygen 1.4.2