#include <strset.h>
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... | |
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.
|
|
Delete all stored strings. When new strings are registered again, new ID values will be used, not the old ones reused. |
|
|
Request the string for a given ID. Return NULL if the string has not been requested (yet). |
|
|
Request the ID for the given string. Create a new ID if the string was never requested before. |