Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csStringSet Class Reference

The string set is a list of strings, all with different content. More...

#include <strset.h>

List of all members.

Public Methods

 csStringSet ()
 Constructor.

 ~csStringSet ()
 Destructor.

csStringID Request (const char *s)
 Request the ID for the given string. More...

const char* Request (csStringID id)
 Request the string for a given ID. More...

void Clear ()
 Delete all stored strings. More...


Detailed Description

The string set is a list of strings, all with different content.

Each string has an ID number. The most important operation is to request a string, which means to return the ID for the string, adding it to the list if it is not already there.


Member Function Documentation

void csStringSet::Clear ( )
 

Delete all stored strings.

When new strings are registered again, new ID values will be used, not the old ones reused.

const char * csStringSet::Request ( csStringID id )
 

Request the string for a given ID.

Return NULL if the string has not been requested (yet).

csStringID csStringSet::Request ( const char * s )
 

Request the ID for the given string.

Create a new ID if the string was never requested before.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000