#include <safestrings.h>
Public Member Functions | |
Construction/Destruction | |
SafeStrings () | |
~SafeStrings () | |
General Methods | |
void | AppendString (PString &newString, BOOL splitString=FALSE) |
void | AppendString (const char *newString, BOOL splitString=FALSE) |
BOOL | GetNextString (PString &nextString) |
BOOL | IsEmpty () |
PString | GetFirstDeleteAll () |
void | GetAllDeleteAll (PStringArray &res) |
Protected Attributes | |
PMutex | accessMutex |
PStringArray | data |
This class is thread safe.
|
Construct SafeStrings class |
|
Destructor |
|
Add a new string to the list, in a thread safe fashion.
|
|
Add a new string to the list, in a thread safe fashion.
|
|
Return the contents of this string array |
|
Return the first string on list, and then delete all elements on the list |
|
Remove the last string from this list, in a thread safe fashion. Return TRUE if succesfull
|
|
Return True if this list is empty |
|
Lock on this string array |
|
Internal String array |