OpenGUI::Resource_CStr Class Reference

#include <OpenGUI_Resource.h>

Inheritance diagram for OpenGUI::Resource_CStr:

OpenGUI::Resource List of all members.

Detailed Description

The same as Resource, except it provides access to the data as a C String.


Public Member Functions

virtual void setData (unsigned char *newData, size_t newSize)
 just as Resource::setData(), but allocates 1 additional byte for holding the '\0' cstring terminator
char * getString ()
 get the contents of the buffer as a cstring
virtual void setSize (size_t size)
 again, allocates the requested buffer size, destroys existing data. Allocates 1 additional byte for cstring terminator


Member Function Documentation

char* OpenGUI::Resource_CStr::getString  )  [inline]
 

get the contents of the buffer as a cstring

virtual void OpenGUI::Resource_CStr::setData unsigned char *  newData,
size_t  newSize
[inline, virtual]
 

just as Resource::setData(), but allocates 1 additional byte for holding the '\0' cstring terminator

Reimplemented from OpenGUI::Resource.

virtual void OpenGUI::Resource_CStr::setSize size_t  size  )  [inline, virtual]
 

again, allocates the requested buffer size, destroys existing data. Allocates 1 additional byte for cstring terminator

Reimplemented from OpenGUI::Resource.


The documentation for this class was generated from the following file:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:21 2007